khaganat-web/chat/urls.py

25 lines
637 B
Python
Raw Normal View History

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