11 lines
395 B
Python
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'),
|
|
]
|