summaryrefslogtreecommitdiffstats
path: root/chat/urls.py
diff options
context:
space:
mode:
Diffstat (limited to 'chat/urls.py')
-rw-r--r--chat/urls.py26
1 files changed, 26 insertions, 0 deletions
diff --git a/chat/urls.py b/chat/urls.py
new file mode 100644
index 0000000..b96b107
--- /dev/null
+++ b/chat/urls.py
@@ -0,0 +1,26 @@
1"""
2URL configuration for chat project.
3
4The `urlpatterns` list routes URLs to views. For more information please see:
5 https://docs.djangoproject.com/en/5.0/topics/http/urls/
6Examples:
7Function views
8 1. Add an import: from my_app import views
9 2. Add a URL to urlpatterns: path('', views.home, name='home')
10Class-based views
11 1. Add an import: from other_app.views import Home
12 2. Add a URL to urlpatterns: path('', Home.as_view(), name='home')
13Including another URLconf
14 1. Import the include() function: from django.urls import include, path
15 2. Add a URL to urlpatterns: path('blog/', include('blog.urls'))
16"""
17from django.contrib import admin
18from django.urls import path
19
20from chat.views import Chat, Room
21
22urlpatterns = [
23 path('admin/', admin.site.urls),
24 path('<str:room>/', Room.as_view()),
25 path('', Chat.as_view()),
26]