From fa8ae232e2fb6480e1f99bdb8393eaf682c0d2d1 Mon Sep 17 00:00:00 2001 From: Jan Szejko Date: Tue, 19 Jun 2018 10:01:47 +0200 Subject: [PATCH 1/1] set authenticaton for api resources --- src/api/urls.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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) -- 2.20.1