From: Jan Szejko Date: Tue, 19 Jun 2018 08:01:47 +0000 (+0200) Subject: set authenticaton for api resources X-Git-Url: https://git.mdrn.pl/wolnelektury.git/commitdiff_plain/fa8ae232e2fb6480e1f99bdb8393eaf682c0d2d1?ds=sidebyside;hp=f25170a0a98f982f01ca5d93425ce85477bd930e set authenticaton for api resources --- diff --git a/src/api/urls.py b/src/api/urls.py index f90ec3e7d..c5ede8fcb 100644 --- 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) -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)