mirror of
https://github.com/ae-utbm/sith.git
synced 2024-11-16 19:23:27 +00:00
18 lines
431 B
Python
18 lines
431 B
Python
from django.conf.urls import url, include
|
|
|
|
from api.views import *
|
|
from rest_framework import routers
|
|
|
|
# Router config
|
|
router = routers.DefaultRouter()
|
|
router.register(r'counter', CounterViewSet, base_name='api_counter')
|
|
|
|
urlpatterns = [
|
|
|
|
# API
|
|
url(r'^', include(router.urls)),
|
|
url(r'^login/', include('rest_framework.urls', namespace='rest_framework')),
|
|
url(r'^markdown$', RenderMarkdown, name='api_markdown'),
|
|
|
|
]
|