# 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
# by the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# celcatsanitizer is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with celcatsanitizer. If not, see .
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"),
path("salles//", views.room_timetable, name="room-timetable"),
path("salles//semaines", views.room_weeks, name="room-weeks"),
path("salles///", views.room_timetable, name="room-timetable"),
path("/", views.mention_list, name="mentions"),
path("//", views.group_list, name="groups"),
path("//tous", views.groups_all, name="groups-all"),
path("///", views.timetable, name="timetable"),
path("///calendars", views.calendars, name="calendars"),
path("///calendar.ics", feeds.IcalFeed(), name="ics"),
path("///calendar-group.ics", feeds.IcalOnlyOneFeed(), name="ics-group"),
path("///feed.atom", feeds.AtomFeed(), name="atom"),
path("///feed.rss", feeds.RSSFeed(), name="rss"),
path("///semaines", views.group_weeks, name="group-weeks"),
path("/////", views.timetable, name="timetable"),
]