Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions fileglancer/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -1181,6 +1181,11 @@ async def simple_login_handler(request: Request, body: dict = Body(...)):

return response

# Return 404 error at /attributes.json
# Required for Neuroglancer to be able to render N5 volumes
@app.get("/attributes.json", include_in_schema=False)
async def serve_attributes_json():
raise HTTPException(status_code=404, detail="Not found")

# Serve SPA at /* for client-side routing
# This must be the LAST route registered
Expand Down