bb-plane-fork/apiserver/plane/urls.py
2025-05-09 21:07:24 +05:30

26 lines
702 B
Python

"""plane URL Configuration"""
from django.conf import settings
from django.urls import include, path, re_path
handler404 = "plane.app.views.error_404.custom_404_view"
urlpatterns = [
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("auth/", include("plane.authentication.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