9 lines
332 B
Python
9 lines
332 B
Python
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"),
|
|
url(r'^settings/$', csrf_exempt(api.SettingsAPI.as_view()), name="api-settings"),
|
|
]
|