Merge pull request 'hide root from api schema' (#529) from hsjobeki-hsjobeki into main
All checks were successful
assets1 / test (push) Successful in 22s
checks-impure / test (push) Successful in 1m35s
checks / test (push) Successful in 2m48s

This commit is contained in:
clan-bot 2023-11-17 11:07:11 +00:00
commit bf2b8b4cca
2 changed files with 1 additions and 6 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}", tags=[Tags.root])
@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

@ -34,8 +34,4 @@ tags_metadata: List[Dict[str, Any]] = [
"name": str(Tags.modules),
"description": "Manage cLAN modules of a flake",
},
{
"name": str(Tags.root),
"description": "This serves as the frontend delivery",
},
]