X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/fa8ae232e2fb6480e1f99bdb8393eaf682c0d2d1..8887547a016bbf665ffc4175346f655f0dfa63fb:/src/api/urls.py?ds=inline diff --git a/src/api/urls.py b/src/api/urls.py index c5ede8fcb..4bbd5f578 100644 --- a/src/api/urls.py +++ b/src/api/urls.py @@ -36,6 +36,8 @@ fragment_list_resource = Resource(handler=handlers.FragmentsHandler) picture_resource = CsrfExemptResource(handler=handlers.PictureHandler, authentication=auth) +blog_resource = Resource(handler=handlers.BlogEntryHandler) + tags_re = r'^(?P(?:(?:[a-z0-9-]+/){2}){0,6})' paginate_re = r'(?:before/(?P[a-z0-9-]+)/)?(?:after/(?P[a-z0-9-]+)/)?(?:count/(?P[0-9]+)/)?$' @@ -109,6 +111,8 @@ urlpatterns = [ url(r'^pictures/$', picture_resource), + url(r'^blog/$', blog_resource), + # fragments by book, tags, themes # this should be paged url(r'^(?P(?:(?:[a-z0-9-]+/){2}){1,6})fragments/$', fragment_list_resource),