mirror of
https://github.com/decompme/decomp.me.git
synced 2026-04-24 07:58:55 -05:00
483bea5833
* add stats to homepage * move stats to side
23 lines
701 B
Python
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",
|
|
),
|
|
]
|