First steps with the api

This commit is contained in:
2016-08-05 00:50:48 +02:00
parent ad36c1c6f6
commit feb7b4689b
15 changed files with 44 additions and 10 deletions

16
api/urls.py Normal file
View File

@ -0,0 +1,16 @@
from django.conf.urls import url, include
from api.views import *
from rest_framework import routers
# Router config
router = routers.DefaultRouter()
urlpatterns = [
# API
url(r'^', include(router.urls)),
url(r'^login/', include('rest_framework.urls', namespace='rest_framework')),
url(r'^markdown$', RenderMarkdown, name='api_markdown'),
]