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

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