plane/apiserver/plane/urls.py

31 lines
759 B
Python
Raw Normal View History

"""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")),
2024-01-10 06:52:20 +00:00
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