Commit bc749a57 authored by impfundev's avatar impfundev

fix: refactor book urls

parent 2ec98359
from django.urls import path
from books.views import index, update, delete
from .views import index, update, delete
urlpatterns = [
path("", index, name="book_lists"),
path("<id>/update/", update, name="update_book"),
path("<id>/delete/", delete, name="delete_book"),
path("", index, name="book_list"),
path("<int:id>/update/", update, name="book_update"),
path("<int:id>/delete/", delete, name="book_delete"),
]
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment