feat(api): move /api-auth to /api/browser (#2094)
This commit is contained in:
parent
87dff94749
commit
35476f9d6d
|
@ -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")),
|
||||
]
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue