khaganat-web/chat/urls.py

23 lines
623 B
Python
Raw Permalink Normal View History

2019-07-23 13:16:03 +00:00
from django.urls import path
from . import views
urlpatterns = [
2019-07-24 17:07:41 +00:00
path("", views.chat_view, name="chat"),
path("logs/", views.LogEntriesView.as_view(), name="log_index"),
2019-07-23 13:16:03 +00:00
path(
2019-07-24 17:07:41 +00:00
"logs/<slug:source>/<int:year>/<int:month>/<int:day>/",
2019-07-23 13:16:03 +00:00
views.LogEntriesView.as_view(),
2019-07-24 17:07:41 +00:00
name="log_day",
2019-07-23 13:16:03 +00:00
),
path(
2019-07-24 17:07:41 +00:00
"logs/switch/source/<int:pk>/",
2019-07-23 13:16:03 +00:00
views.switch_log_source,
2019-07-24 17:07:41 +00:00
name="log_switch_source",
2019-07-23 13:16:03 +00:00
),
path(
2019-07-24 17:07:41 +00:00
"logs/switch/entry/<int:pk>/", views.switch_log_entry, name="log_switch_entry"
2019-07-23 13:16:03 +00:00
),
2019-07-24 17:07:41 +00:00
path("logs/search/", views.log_search_view, name="log_search"),
2019-07-23 13:16:03 +00:00
]