mirror of
https://github.com/rzmk/learnhouse.git
synced 2025-12-19 04:19:25 +00:00
feat: user init & refactors
This commit is contained in:
parent
b4dcc14749
commit
a50fc67104
25 changed files with 356 additions and 358 deletions
|
|
@ -1,7 +1,5 @@
|
|||
from fastapi import APIRouter, Depends
|
||||
from src import rewrite
|
||||
from src.routers import blocks, dev, trail, users, auth, orgs, roles
|
||||
from src.rewrite.routers import users as rw_users
|
||||
from src.routers.courses import chapters, collections, courses, activities
|
||||
from src.routers.install import install
|
||||
from src.services.dev.dev import isDevModeEnabledOrRaise
|
||||
|
|
@ -9,7 +7,6 @@ from src.services.install.install import isInstallModeEnabled
|
|||
|
||||
|
||||
v1_router = APIRouter(prefix="/api/v1")
|
||||
rewrite = APIRouter(prefix="/api/rewrite")
|
||||
|
||||
|
||||
# API Routes
|
||||
|
|
@ -39,5 +36,3 @@ v1_router.include_router(
|
|||
dependencies=[Depends(isInstallModeEnabled)],
|
||||
)
|
||||
|
||||
# Rewrite Routes
|
||||
rewrite.include_router(rw_users.router, prefix="/users", tags=["users"])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue