urls.py 343 Bytes
Newer Older
luxcem's avatar
luxcem committed
1
from rest_framework import routers
2
from .views import ArticleViewSet, ArticleSearch, ArticleTag
luxcem's avatar
luxcem committed
3
4
5
router = routers.DefaultRouter()

router.register(r"articles", ArticleViewSet)
6
router.register(r"articles-by-tag/(?P<filter_tag>.+)", ArticleTag)
Thibaut Broggi's avatar
Thibaut Broggi committed
7
router.register(r"articles-search/(?P<search_keywords>.+)", ArticleSearch)
cynddl's avatar
cynddl committed
8
urlpatterns = router.urls