gestiojeux/inventory/urls.py

35 lines
1 KiB
Python
Raw Normal View History

from django.urls import path
2020-11-22 19:01:21 +01:00
from .views import (
InventoryView,
CategoryListView,
CategoryView,
TagListView,
TagView,
GameListView,
GameView,
AddGameCommentView,
ModifyGameCommentView,
InventorySearchView,
2020-11-22 19:01:21 +01:00
)
app_name = "inventory"
urlpatterns = [
path("", InventoryView.as_view(), name="inventory"),
2020-11-22 19:01:21 +01:00
path("category/", CategoryListView.as_view(), name="category_list"),
path("category/<slug>/", CategoryView.as_view(), name="category"),
path("tag/", TagListView.as_view(), name="tag_list"),
path("tag/<slug>/", TagView.as_view(), name="tag"),
path("game/", GameListView.as_view(), name="game_list"),
path("game/<slug>/", GameView.as_view(), name="game"),
path(
"game/<slug>/add_comment", AddGameCommentView.as_view(), name="add_game_comment"
),
path(
"game/<slug>/modify_comment/<int:comment_id>",
ModifyGameCommentView.as_view(),
name="modify_game_comment",
),
path("search/", InventorySearchView.as_view(), name="search"),
]