don't use csrf_exempt everywhere
This commit is contained in:
parent
f031b46b20
commit
7882bfe1ef
6 changed files with 8 additions and 12 deletions
|
@ -31,7 +31,7 @@ urlpatterns = [
|
|||
|
||||
# internal action endpoints
|
||||
re_path(r'^review/?$', views.review),
|
||||
re_path(r'^shelve/(?P<shelf_id>\w+)/(?P<book_id>\d+)/?$', views.shelve),
|
||||
re_path(r'^shelve/(?P<shelf_id>[\w_-]+)/(?P<book_id>\d+)/?$', views.shelve),
|
||||
re_path(r'^follow/?$', views.follow),
|
||||
re_path(r'^unfollow/?$', views.unfollow),
|
||||
re_path(r'^search/?$', views.search),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue