Files
decomp.me/backend/coreapp/urls.py
T
Alex Bates 483bea5833 Add stats to homepage (#521)
* add stats to homepage

* move stats to side
2022-09-13 22:54:59 +09:00

23 lines
701 B
Python

from django.urls import path
from coreapp.views import compilers, stats, project, scratch, user
urlpatterns = [
path("compilers", compilers.CompilersDetail.as_view(), name="compilers"),
path("stats", stats.StatsDetail.as_view(), name="stats"),
*scratch.router.urls,
*project.router.urls,
path("user", user.CurrentUser.as_view(), name="current-user"),
path(
"user/scratches",
user.CurrentUserScratchList.as_view(),
name="current-user-scratches",
),
path("users/<slug:username>", user.user, name="user-detail"),
path(
"users/<slug:username>/scratches",
user.UserScratchList.as_view(),
name="user-scratches",
),
]