hide root from api schema
This commit is contained in:
@@ -13,7 +13,7 @@ router = APIRouter()
|
|||||||
log = logging.getLogger(__name__)
|
log = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
|
||||||
@router.get("/{path_name:path}", tags=[Tags.root])
|
@router.get("/{path_name:path}", include_in_schema=False)
|
||||||
async def root(path_name: str) -> Response:
|
async def root(path_name: str) -> Response:
|
||||||
if path_name == "":
|
if path_name == "":
|
||||||
path_name = "index.html"
|
path_name = "index.html"
|
||||||
|
|||||||
@@ -33,9 +33,5 @@ tags_metadata: List[Dict[str, Any]] = [
|
|||||||
{
|
{
|
||||||
"name": str(Tags.modules),
|
"name": str(Tags.modules),
|
||||||
"description": "Manage cLAN modules of a flake",
|
"description": "Manage cLAN modules of a flake",
|
||||||
},
|
}
|
||||||
{
|
|
||||||
"name": str(Tags.root),
|
|
||||||
"description": "This serves as the frontend delivery",
|
|
||||||
},
|
|
||||||
]
|
]
|
||||||
|
|||||||
Reference in New Issue
Block a user