Files
chunyu_project/shorturl/urls.py
T
2026-08-05 23:59:15 +08:00

11 lines
395 B
Python

from django.urls import path
from .views import ShortUrlShortenView, ShortUrlInfoView, ShortUrlRedirectView, ShortUrlListView
app_name = 'shorturl'
urlpatterns = [
path('shorten/', ShortUrlShortenView.as_view(), name='shorturl-shorten'),
path('info/<str:code>/', ShortUrlInfoView.as_view(), name='shorturl-info'),
path('list/', ShortUrlListView.as_view(), name='shorturl-list'),
]