重构现代化 FastAPI 后端项目框架
This commit is contained in:
0
app/api/__init__.py
Normal file
0
app/api/__init__.py
Normal file
0
app/api/v1/__init__.py
Normal file
0
app/api/v1/__init__.py
Normal file
0
app/api/v1/endpoints/__init__.py
Normal file
0
app/api/v1/endpoints/__init__.py
Normal file
0
app/api/v1/endpoints/auth.py
Normal file
0
app/api/v1/endpoints/auth.py
Normal file
0
app/api/v1/endpoints/extension.py
Normal file
0
app/api/v1/endpoints/extension.py
Normal file
0
app/api/v1/endpoints/network_elements.py
Normal file
0
app/api/v1/endpoints/network_elements.py
Normal file
0
app/api/v1/endpoints/project.py
Normal file
0
app/api/v1/endpoints/project.py
Normal file
0
app/api/v1/endpoints/scada.py
Normal file
0
app/api/v1/endpoints/scada.py
Normal file
0
app/api/v1/endpoints/simulation.py
Normal file
0
app/api/v1/endpoints/simulation.py
Normal file
0
app/api/v1/endpoints/snapshots.py
Normal file
0
app/api/v1/endpoints/snapshots.py
Normal file
20
app/api/v1/router.py
Normal file
20
app/api/v1/router.py
Normal file
@@ -0,0 +1,20 @@
|
||||
from fastapi import APIRouter
|
||||
from app.api.v1.endpoints import (
|
||||
auth,
|
||||
project,
|
||||
network_elements,
|
||||
simulation,
|
||||
scada,
|
||||
extension,
|
||||
snapshots
|
||||
)
|
||||
|
||||
api_router = APIRouter()
|
||||
|
||||
api_router.include_router(auth.router, prefix="/auth", tags=["auth"])
|
||||
api_router.include_router(project.router, prefix="/projects", tags=["projects"])
|
||||
api_router.include_router(network_elements.router, prefix="/elements", tags=["network-elements"])
|
||||
api_router.include_router(simulation.router, prefix="/simulation", tags=["simulation"])
|
||||
api_router.include_router(scada.router, prefix="/scada", tags=["scada"])
|
||||
api_router.include_router(extension.router, prefix="/extension", tags=["extension"])
|
||||
api_router.include_router(snapshots.router, prefix="/snapshots", tags=["snapshots"])
|
||||
Reference in New Issue
Block a user