Skip to content

Commit

Permalink
Add favicon to Django API (#4360)
Browse files Browse the repository at this point in the history
  • Loading branch information
madewithkode authored May 27, 2024
1 parent 7433a29 commit 7960716
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 1 deletion.
Binary file added api/api/static/favicon.ico
Binary file not shown.
16 changes: 16 additions & 0 deletions api/api/static/favicon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion api/conf/settings/spectacular.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"SORT_OPERATION_PARAMETERS": False,
"EXTENSIONS_INFO": {
"x-logo": {
"url": "https://raw.githubusercontent.com/WordPress/openverse/HEAD/brand/logo.svg",
"url": "https://raw.githubusercontent.com/WordPress/openverse/HEAD/documentation/meta/brand/logo.svg",
"backgroundColor": "#fafafa",
}
},
Expand Down
8 changes: 8 additions & 0 deletions api/nginx.conf.template
Original file line number Diff line number Diff line change
Expand Up @@ -91,4 +91,12 @@ server {
default_type "application/json";
return 200 '{"release": "$DJANGO_NGINX_GIT_REVISION", "environment": "$DJANGO_NGINX_ENVIRONMENT"}';
}

location /favicon.ico {
alias /app/static/favicon.ico;
}

location /favicon.svg {
alias /app/static/favicon.svg;
}
}

0 comments on commit 7960716

Please sign in to comment.