mirror of
https://github.com/boostorg/website-v2.git
synced 2026-01-19 04:42:17 +00:00
16 lines
307 B
Python
16 lines
307 B
Python
from rest_framework.routers import DefaultRouter
|
|
|
|
from django.urls import path
|
|
|
|
from . import api
|
|
|
|
|
|
router = DefaultRouter()
|
|
router.register(r"users", api.UserViewSet, basename="user")
|
|
|
|
urlpatterns = [
|
|
path("users/me/", api.CurrentUserView.as_view(), name="current-user"),
|
|
]
|
|
|
|
urlpatterns += router.urls
|