plane/apiserver/plane/urls.py
2024-01-10 12:22:20 +05:30

30 lines
702 B
Python

"""plane URL Configuration
"""
from django.urls import path, include, re_path
from django.views.generic import TemplateView
from django.conf import settings
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