Sith/api/urls.py

18 lines
431 B
Python
Raw Normal View History

2016-08-04 22:50:48 +00:00
from django.conf.urls import url, include
from api.views import *
from rest_framework import routers
# Router config
router = routers.DefaultRouter()
2016-08-05 18:01:23 +00:00
router.register(r'counter', CounterViewSet, base_name='api_counter')
2016-08-04 22:50:48 +00:00
urlpatterns = [
# API
url(r'^', include(router.urls)),
url(r'^login/', include('rest_framework.urls', namespace='rest_framework')),
url(r'^markdown$', RenderMarkdown, name='api_markdown'),
2016-08-05 18:01:23 +00:00
]