mirror of
https://github.com/invoke-ai/InvokeAI.git
synced 2026-02-03 12:54:57 -05:00
When returning a `FileResponse`, we must provide a valid path, else an exception is raised outside the route handler. Add the `validate_path` method back to the service so we can validate paths before returning the file. I don't like this but apparently this is just how `starlette` and `fastapi` works with `FileResponse`.