urls.py 308 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 GeneViewSet
Kenzo-Hugo Hillion's avatar
Kenzo-Hugo Hillion committed
5
6
7


api_router = DefaultRouter()
8
api_router.register(r'genes', GeneViewSet, base_name='genes')
Kenzo-Hugo Hillion's avatar
Kenzo-Hugo Hillion committed
9

10

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