CI / test (pull_request) Successful in 6s
Standalone Django service so callers can mint links and phones get a 302. Closes #1.
18 lines
533 B
Python
18 lines
533 B
Python
"""URL configuration for shortener."""
|
|
|
|
from django.contrib import admin
|
|
from django.urls import include, path
|
|
|
|
from core.views import healthz, landing
|
|
from links.debug_views import debug_create
|
|
from links.views import redirect_view
|
|
|
|
urlpatterns = [
|
|
path("", landing, name="landing"),
|
|
path("healthz/", healthz, name="healthz"),
|
|
path("debug/", debug_create, name="debug-create"),
|
|
path("admin/", admin.site.urls),
|
|
path("api/links/", include("links.urls")),
|
|
path("<str:code>", redirect_view, name="redirect"),
|
|
]
|