feat(api): move /api-auth to /api/browser (#2094)

This commit is contained in:
Jonas L 2022-09-06 21:30:43 +02:00 committed by GitHub
parent 87dff94749
commit 35476f9d6d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -22,6 +22,7 @@ api_urls += storage_urls
urlpatterns = [
path("api/browser/", include("rest_framework.urls", namespace="rest_framework")),
path("api/v2/", include(api_urls)),
path(
"api/v2/schema",
@ -33,5 +34,4 @@ urlpatterns = [
SpectacularSwaggerView.as_view(url_name="schema"),
name="swagger-ui",
),
path("api-auth/", include("rest_framework.urls", namespace="rest_framework")),
]

View File

@ -34,7 +34,7 @@ server {
try_files $uri $uri/ /index.php$is_args$args;
}
location ~ ^/(api/v2|api-auth) {
location ~ ^/api/(v2|browser) {
include proxy_params;
proxy_redirect off;
proxy_pass http://unix:/run/libretime-api.sock;