-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathurls.py
37 lines (32 loc) · 1.18 KB
/
urls.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
from django.conf import settings
from django.contrib import admin
from django.urls import include, path
from django.views.generic import TemplateView
from rest_framework.schemas import get_schema_view
admin.site.site_header = "Platform Admin"
urlpatterns = [
path("admin/", admin.site.urls),
path("accounts/", include("accounts.urls")),
path("options/", include("options.urls", namespace="options")),
path("identity/", include("identity.urls", namespace="identity")),
path("monitor/", include("monitor.urls", namespace="monitor")),
path("s/", include("shortener.urls", namespace="shortener")),
path(
"openapi/",
get_schema_view(title="Platform Documentation", public=True),
name="openapi-schema",
),
path(
"documentation/",
TemplateView.as_view(
template_name="redoc.html", extra_context={"schema_url": "openapi-schema"}
),
name="documentation",
),
]
if settings.DEBUG: # pragma: no cover
import debug_toolbar
urlpatterns = [
path("__debug__/", include(debug_toolbar.urls)),
path("emailpreview/", include("email_tools.urls", namespace="email_tools")),
] + urlpatterns