urls.py 488 Bytes
Newer Older
Kenzo-Hugo Hillion's avatar
Kenzo-Hugo Hillion committed
1
2
3
from django.conf.urls import url, include
from rest_framework.routers import DefaultRouter

4
from metagenedb.api.catalog.views import FunctionViewSet, GeneViewSet, TaxonomyViewSet
Kenzo-Hugo Hillion's avatar
Kenzo-Hugo Hillion committed
5
6
7


api_router = DefaultRouter()
8
api_router.register(r'functions', FunctionViewSet, base_name='functions')
9
api_router.register(r'genes', GeneViewSet, base_name='genes')
10
api_router.register(r'taxonomy', TaxonomyViewSet, base_name='taxonomy')
Kenzo-Hugo Hillion's avatar
Kenzo-Hugo Hillion committed
11

12

Kenzo-Hugo Hillion's avatar
Kenzo-Hugo Hillion committed
13
urlpatterns = [
14
    url(r'v1/', include((api_router.urls, 'v1')))
Kenzo-Hugo Hillion's avatar
Kenzo-Hugo Hillion committed
15
]