Added counters in api

This commit is contained in:
2016-08-05 20:01:23 +02:00
parent feb7b4689b
commit c2ccf63021
5 changed files with 52 additions and 2 deletions

View File

@ -5,6 +5,7 @@ from rest_framework import routers
# Router config
router = routers.DefaultRouter()
router.register(r'counter', CounterViewSet, base_name='api_counter')
urlpatterns = [
@ -13,4 +14,4 @@ urlpatterns = [
url(r'^login/', include('rest_framework.urls', namespace='rest_framework')),
url(r'^markdown$', RenderMarkdown, name='api_markdown'),
]
]