fnp
/
wolnelektury.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
f25170a
)
set authenticaton for api resources
author
Jan Szejko
<janek37@gmail.com>
Tue, 19 Jun 2018 08:01:47 +0000
(10:01 +0200)
committer
Jan Szejko
<janek37@gmail.com>
Tue, 19 Jun 2018 08:01:47 +0000
(10:01 +0200)
src/api/urls.py
patch
|
blob
|
history
diff --git
a/src/api/urls.py
b/src/api/urls.py
index
f90ec3e
..
c5ede8f
100644
(file)
--- a/
src/api/urls.py
+++ b/
src/api/urls.py
@@
-20,10
+20,10
@@
ebook_list_resource = Resource(handler=handlers.EBooksHandler)
# book_list_resource = Resource(handler=handlers.BooksHandler)
book_resource = Resource(handler=handlers.BookDetailHandler)
filter_book_resource = Resource(handler=handlers.FilterBooksHandler)
# book_list_resource = Resource(handler=handlers.BooksHandler)
book_resource = Resource(handler=handlers.BookDetailHandler)
filter_book_resource = Resource(handler=handlers.FilterBooksHandler)
-epub_resource = Resource(handler=handlers.EpubHandler)
+epub_resource = Resource(handler=handlers.EpubHandler
, authentication=auth
)
-reading_resource = CsrfExemptResource(handler=handlers.UserDataHandler)
-shelf_resource = Resource(handler=handlers.UserShelfHandler)
+reading_resource = CsrfExemptResource(handler=handlers.UserDataHandler
, authentication=auth
)
+shelf_resource = Resource(handler=handlers.UserShelfHandler
, authentication=auth
)
collection_resource = Resource(handler=handlers.CollectionDetailHandler)
collection_list_resource = Resource(handler=handlers.CollectionsHandler)
collection_resource = Resource(handler=handlers.CollectionDetailHandler)
collection_list_resource = Resource(handler=handlers.CollectionsHandler)