mirror of
https://github.com/sysadminsmedia/homebox.git
synced 2025-12-21 13:23:14 +01:00
Currently, the implementation for API v1 routes has the main drawback that any unknown path gets the fallback `notFoundHandler`, trying to access filesystem paths. However, for API routes specifically, we can have a subrouter, and a default NotFound handler that returns 404. With this change, requests to `api/v1/<unknown>` now correctly returns status code 404 instead of 200.