qlinks/qlinks/urls/short.py

12 lines
314 B
Python
Raw Normal View History

2022-01-23 23:38:45 -05:00
from functools import partial
2022-01-23 22:57:44 -05:00
from django.urls import path
2025-01-02 01:08:10 -05:00
from qlinks.views import health_check, short_link
2022-01-23 22:57:44 -05:00
urlpatterns = [
2023-07-05 01:22:18 -04:00
path('', partial(short_link, path=''), name='short_link'),
2025-01-02 01:08:10 -05:00
path('api/health_check', health_check, name='health_check'),
2023-07-05 01:22:18 -04:00
path('<path:path>', short_link, name='short_link'),
2022-01-23 22:57:44 -05:00
]