make users router with authorization (excluding sign-in and sign-up routers)

This commit is contained in:
Timur
2025-03-01 00:53:25 +03:00
parent c72cee88ee
commit 75940ffc46
2 changed files with 7 additions and 3 deletions
+2
View File
@@ -3,6 +3,7 @@ from functools import partial
from ninja import NinjaAPI
from api.v1 import handlers
from api.v1.auth import BearerAuth
from api.v1.ping.views import router as ping_router
from api.v1.users.views import router as users_router
@@ -21,6 +22,7 @@ router.add_router(
router.add_router(
"",
users_router,
auth=BearerAuth(),
)