aboutsummaryrefslogtreecommitdiff
path: root/urls.py
diff options
context:
space:
mode:
authorAlban Gruin2019-01-27 21:59:34 +0100
committerAlban Gruin2019-01-27 21:59:34 +0100
commit3db1e1cf3147c2a12eb29973493d9fbae063ee7c (patch)
treef7427d1cef5e84ba09dc6f01884b306f986d6ea9 /urls.py
parent0001f374946a8778b0b5fad4c5baee091d328a9f (diff)
parent9987d47ec8c74d649de2a7d09ef62beb885949d9 (diff)
Merge branch 'ag/api' into prod/pa1ch/0.14.z
Diffstat (limited to 'urls.py')
-rw-r--r--urls.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/urls.py b/urls.py
index 977ac8d..5cd134e 100644
--- a/urls.py
+++ b/urls.py
@@ -1,4 +1,4 @@
-# Copyright (C) 2017-2018 Alban Gruin
+# Copyright (C) 2017-2019 Alban Gruin
#
# celcatsanitizer is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published
@@ -14,10 +14,13 @@
# along with celcatsanitizer. If not, see <http://www.gnu.org/licenses/>.
from django.urls import include, path
+
from . import feeds, views
+from .api.urls import router
urlpatterns = [
path("", views.index, name="index"),
+ path("api/", include(router.urls)),
path("pages/", include("django.contrib.flatpages.urls")),
path("salles/", views.rooms, name="rooms"),
path("salles/qsjps", views.qsjps, name="qsjps"),