2020-10-11 22:16:00 +02:00
|
|
|
from django.urls import path
|
2020-11-22 19:01:21 +01:00
|
|
|
from .views import (
|
|
|
|
InventoryView,
|
|
|
|
CategoryListView,
|
|
|
|
CategoryView,
|
|
|
|
TagListView,
|
|
|
|
TagView,
|
|
|
|
GameListView,
|
|
|
|
GameView,
|
2020-12-13 00:12:06 +01:00
|
|
|
AddGameCommentView,
|
|
|
|
ModifyGameCommentView,
|
2020-11-28 00:33:33 +01:00
|
|
|
InventorySearchView,
|
2024-05-02 11:13:34 +02:00
|
|
|
GameLoanView,
|
|
|
|
BorrowGameView,
|
|
|
|
ReturnGameView,
|
2024-05-06 16:24:16 +02:00
|
|
|
OngoingLoansView,
|
|
|
|
DetailLoanView,
|
2020-11-22 19:01:21 +01:00
|
|
|
)
|
2020-10-11 22:16:00 +02: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"),
|
2020-12-13 00:12:06 +01:00
|
|
|
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",
|
|
|
|
),
|
2020-11-28 00:33:33 +01:00
|
|
|
path("search/", InventorySearchView.as_view(), name="search"),
|
2024-05-06 16:24:16 +02:00
|
|
|
path("loans/game/<slug>/", GameLoanView.as_view(), name="game_loan"),
|
2024-05-02 11:13:34 +02:00
|
|
|
path("loans/return/<slug>/", ReturnGameView.as_view(), name="return_game"),
|
|
|
|
path("loans/borrow/<slug>/", BorrowGameView.as_view(), name="borrow_game"),
|
2024-05-06 16:24:16 +02:00
|
|
|
path("loans/ongoing/", OngoingLoansView.as_view(), name="ongoing_loans"),
|
|
|
|
path("loans/all/", DetailLoanView.as_view(), name="all_loans"),
|
2020-10-11 22:16:00 +02:00
|
|
|
]
|