Fix a typing issue with the fastapi-vue staticfiles module causing problems with SPA mode handler.

This commit is contained in:
2026-03-08 17:30:42 +00:00
parent 79316eebd4
commit dcaf415032
+1 -1
View File
@@ -220,7 +220,7 @@ class Frontend:
if self._catch_all:
# Register catch-all immediately (works without load)
path = self._mount_path + "{path:path}"
app.api_route(path, methods=["GET", "HEAD"], name="frontend")(self.handle)
app.api_route(path, methods=["GET", "HEAD"], name="frontend", response_model=None)(self.handle)
def _register_routes(self) -> None:
"""Register individual routes for each loaded file (non-catch_all mode)."""