feat: adding openapi spect generation to the frontend client aas well as to fast api. Broke API out into different routes
This commit is contained in:
0
mta_sign_server/config/__init__.py
Normal file
0
mta_sign_server/config/__init__.py
Normal file
15
mta_sign_server/config/router.py
Normal file
15
mta_sign_server/config/router.py
Normal file
@@ -0,0 +1,15 @@
|
||||
import logging
|
||||
|
||||
from fastapi import APIRouter
|
||||
from starlette.responses import JSONResponse
|
||||
|
||||
router = APIRouter(
|
||||
tags=["config"],
|
||||
)
|
||||
|
||||
logger = logging.getLogger("config_router")
|
||||
|
||||
|
||||
@router.get("/api/config")
|
||||
def get_all():
|
||||
return JSONResponse({"config": "goes here"})
|
||||
Reference in New Issue
Block a user