Geoffrey-Django/GeoffreyApp/api/urls.py

9 lines
332 B
Python
Raw Normal View History

from django.conf.urls import url
from django.views.decorators.csrf import csrf_exempt
import GeoffreyApp.api.views as api
urlpatterns = [
url(r'^command/(?P<command>\w{1,20})/$', csrf_exempt(api.CommandAPI.as_view()), name="api-command"),
2018-12-02 02:17:19 +00:00
url(r'^settings/$', csrf_exempt(api.SettingsAPI.as_view()), name="api-settings"),
]