hide root from api schema
All checks were successful
checks-impure / test (pull_request) Successful in 1m34s
checks / test (pull_request) Successful in 2m50s

This commit is contained in:
Johannes Kirschbauer 2023-11-17 12:03:40 +01:00
parent 02c3222f6b
commit f07fb05220
Signed by: hsjobeki
SSH Key Fingerprint: SHA256:vX3utDqig7Ph5L0JPv87ZTPb/w7cMzREKVZzzLFg9qU
2 changed files with 2 additions and 3 deletions

View File

@ -6,14 +6,13 @@ from pathlib import Path
from fastapi import APIRouter, Response
from ..assets import asset_path
from ..tags import Tags
router = APIRouter()
log = logging.getLogger(__name__)
@router.get("/{path_name:path}", include_in_schema=False)
@router.get("/{path_name:path}", include_in_schema=False)
async def root(path_name: str) -> Response:
if path_name == "":
path_name = "index.html"

View File

@ -33,5 +33,5 @@ tags_metadata: List[Dict[str, Any]] = [
{
"name": str(Tags.modules),
"description": "Manage cLAN modules of a flake",
}
},
]