gestiojeux/suggestions/urls.py
sinavir c01ed7cb47 style(pre-commit): Add hook
Python:
- black
- isort (black profile)
- ruff

Nix:
- statix
- nixfmt-rfc-style
- deadnix
2024-07-04 20:47:46 +02:00

37 lines
1,014 B
Python

from django.urls import path
from .views import (
AddSuggestionCommentView,
AddSuggestionView,
DownvoteSuggestionView,
ModifySuggestionCommentView,
SuggestionListView,
SuggestionView,
UpvoteSuggestionView,
)
app_name = "suggestions"
urlpatterns = [
path("", SuggestionListView.as_view(), name="suggestions"),
path("add/", AddSuggestionView.as_view(), name="add_suggestion"),
path("item/<slug>/", SuggestionView.as_view(), name="suggestion"),
path(
"item/<slug>/upvote", UpvoteSuggestionView.as_view(), name="upvote_suggestion"
),
path(
"item/<slug>/downvote",
DownvoteSuggestionView.as_view(),
name="downvote_suggestion",
),
path(
"item/<slug>/add_comment",
AddSuggestionCommentView.as_view(),
name="add_suggestion_comment",
),
path(
"item/<slug>/modify_comment/<int:comment_id>",
ModifySuggestionCommentView.as_view(),
name="modify_suggestion_comment",
),
]