Skip to content

Commit 189acc7

Browse files
Suspend spa_url from urls.py
1 parent 02726cd commit 189acc7

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

backend/langpro_annotator/urls.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,10 @@
3333
api_router.register(r"label", LabelAnnotationView, basename="labels")
3434

3535

36-
if settings.PROXY_FRONTEND:
37-
spa_url = re_path(r"^(?P<path>.*)$", proxy_frontend)
38-
else:
39-
spa_url = re_path(r"", index)
36+
# if settings.PROXY_FRONTEND:
37+
# spa_url = re_path(r"^(?P<path>.*)$", proxy_frontend)
38+
# else:
39+
# spa_url = re_path(r"", index)
4040

4141
urlpatterns = [
4242
path("admin", RedirectView.as_view(url="/admin/", permanent=True)),
@@ -54,5 +54,5 @@
5454
),
5555
path("api/i18n/", i18n),
5656
path("users/", include("user.urls")),
57-
spa_url, # catch-all; unknown paths to be handled by a SPA
57+
# spa_url, # catch-all; unknown paths to be handled by a SPA
5858
]

0 commit comments

Comments
 (0)