Buckets:
AnonymousSpottedToad/candidate_bucket / codebase /python /snowcell-cloud_Snowcode /openhands /server /static.py
| from fastapi.staticfiles import StaticFiles | |
| from starlette.responses import Response | |
| from starlette.types import Scope | |
| class SPAStaticFiles(StaticFiles): | |
| async def get_response(self, path: str, scope: Scope) -> Response: | |
| try: | |
| return await super().get_response(path, scope) | |
| except Exception: | |
| # FIXME: just making this HTTPException doesn't work for some reason | |
| return await super().get_response('index.html', scope) | |
Xet Storage Details
- Size:
- 473 Bytes
- Xet hash:
- 432046b29a58eb9b6bf1036617b649c34f3233ae708fd1d7eb6d00fa33710ddf
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.