mirror of
https://github.com/ae-utbm/sith.git
synced 2025-07-11 12:29:24 +00:00
First steps with the api
This commit is contained in:
16
api/urls.py
Normal file
16
api/urls.py
Normal 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'),
|
||||
|
||||
]
|
Reference in New Issue
Block a user