urls.py 346 Bytes
Newer Older
luxcem's avatar
luxcem committed
1
from rest_framework import routers
2
from .views import ArticleViewSet, ArticleSearch, ArticleTag
3
4


luxcem's avatar
luxcem committed
5
6
7
router = routers.DefaultRouter()

router.register(r"articles", ArticleViewSet)
8
router.register(r"articles-by-tag/(?P<filter_tag>.+)", ArticleTag)
9
router.register(r"articles-search/(?P<search_keywords>.+)", ArticleSearch)
10

cynddl's avatar
cynddl committed
11
urlpatterns = router.urls