message/tmessage/urls.py

19 lines
605 B
Python
Raw Permalink Normal View History

2024-12-22 00:08:08 -05:00
from django.contrib import admin
2024-12-23 22:38:49 -05:00
from django.urls import include, path
2024-12-22 00:08:08 -05:00
2024-12-24 12:14:38 -05:00
from .views import (api_messages, api_user, auth, index, message, message_page,
messages, profile)
2024-12-22 00:08:08 -05:00
urlpatterns = [
path("", index),
path("auth/", auth),
2024-12-23 22:38:49 -05:00
path("messages/", messages),
2024-12-22 00:08:08 -05:00
path("u/<str:username>/", profile),
path("m/<str:username>/", message),
2024-12-24 11:34:10 -05:00
path("msg/<int:message_id>/", message_page),
2024-12-24 10:22:37 -05:00
path("api/messages/", api_messages),
2024-12-24 12:14:38 -05:00
path("api/user/<str:username>/", api_user),
2024-12-23 22:38:49 -05:00
path("static/", include("tmessage.views.static")),
2024-12-22 00:08:08 -05:00
path("django-admin/", admin.site.urls)
]