mirror of
https://github.com/rzmk/learnhouse.git
synced 2025-12-19 04:19:25 +00:00
wip: initiate user creation
This commit is contained in:
parent
afaf1d6dfe
commit
732b14866c
10 changed files with 126 additions and 11 deletions
|
|
@ -1,5 +1,7 @@
|
|||
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
|
||||
|
|
@ -7,6 +9,7 @@ from src.services.install.install import isInstallModeEnabled
|
|||
|
||||
|
||||
v1_router = APIRouter(prefix="/api/v1")
|
||||
rewrite = APIRouter(prefix="/api/rewrite")
|
||||
|
||||
|
||||
# API Routes
|
||||
|
|
@ -35,3 +38,6 @@ v1_router.include_router(
|
|||
tags=["install"],
|
||||
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