plane/apiserver/plane/urls.py
Bavisetti Narayan 4572b7378d
[WEB-621] chore: 404 page not found (#3859)
* chore: custom 404 error

* chore: moved from middleware to view
2024-03-06 14:24:58 +05:30

31 lines
759 B
Python

"""plane URL Configuration
"""
from django.urls import path, include, re_path
from django.views.generic import TemplateView
from django.conf import settings
handler404 = "plane.app.views.error_404.custom_404_view"
urlpatterns = [
path("", TemplateView.as_view(template_name="index.html")),
path("api/", include("plane.app.urls")),
path("api/public/", include("plane.space.urls")),
path("api/instances/", include("plane.license.urls")),
path("api/v1/", include("plane.api.urls")),
path("", include("plane.web.urls")),
]
if settings.DEBUG:
try:
import debug_toolbar
urlpatterns = [
re_path(r"^__debug__/", include(debug_toolbar.urls)),
] + urlpatterns
except ImportError:
pass