1
0
Fork 0
spejstore-new/storage/urls.py

24 lines
697 B
Python
Raw Normal View History

2024-01-12 17:56:27 +00:00
from django.urls import re_path, include
2018-04-27 20:53:38 +00:00
from storage.views import (
2023-07-11 13:34:35 +00:00
index,
search,
item_display,
label_lookup,
apitoken,
ItemSelectView,
PropSelectView,
2018-04-27 20:53:38 +00:00
)
urlpatterns = [
2024-01-12 17:56:27 +00:00
re_path(r"^$", index),
re_path(r"^search$", search),
re_path(r"^apitoken$", apitoken),
re_path(r"^item/(?P<pk>.*)$", item_display, name="item-display"),
re_path(r"^autocomplete.json$", ItemSelectView.as_view(), name="item-complete"),
re_path(
r"^autocomplete_prop.json$", PropSelectView.as_view(), name="prop-complete"
),
re_path(r"^(?P<pk>[^/]*)$", label_lookup, name="label-lookup"),
re_path("", include("social_django.urls", namespace="social")),
]