Add v1 shortener: Bearer API, public 302, landing, and CI.
CI / test (pull_request) Successful in 6s
CI / test (pull_request) Successful in 6s
Standalone Django service so callers can mint links and phones get a 302. Closes #1.
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
"""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"),
|
||||
]
|
||||
Reference in New Issue
Block a user