2022-11-29 21:17:42 +00:00
|
|
|
"""plane URL Configuration
|
|
|
|
|
|
|
|
"""
|
|
|
|
|
2023-07-06 06:28:24 +00:00
|
|
|
from django.urls import path, include, re_path
|
2022-11-29 21:17:42 +00:00
|
|
|
from django.views.generic import TemplateView
|
|
|
|
|
|
|
|
from django.conf import settings
|
|
|
|
|
2024-03-06 08:54:58 +00:00
|
|
|
handler404 = "plane.app.views.error_404.custom_404_view"
|
2022-11-29 21:17:42 +00:00
|
|
|
|
|
|
|
urlpatterns = [
|
|
|
|
path("", TemplateView.as_view(template_name="index.html")),
|
2023-11-20 06:29:20 +00:00
|
|
|
path("api/", include("plane.app.urls")),
|
|
|
|
path("api/public/", include("plane.space.urls")),
|
2024-01-10 06:52:20 +00:00
|
|
|
path("api/instances/", include("plane.license.urls")),
|
2023-11-20 10:28:17 +00:00
|
|
|
path("api/v1/", include("plane.api.urls")),
|
2022-11-29 21:17:42 +00:00
|
|
|
path("", include("plane.web.urls")),
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
|
|
if settings.DEBUG:
|
2023-12-12 06:24:52 +00:00
|
|
|
try:
|
|
|
|
import debug_toolbar
|
|
|
|
|
|
|
|
urlpatterns = [
|
|
|
|
re_path(r"^__debug__/", include(debug_toolbar.urls)),
|
|
|
|
] + urlpatterns
|
|
|
|
except ImportError:
|
|
|
|
pass
|