2018-11-22 02:09:30 +00:00
|
|
|
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"),
|
2018-11-22 02:09:30 +00:00
|
|
|
]
|