Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: replace assert with error (#3074)
This PR changes the behavior of checking the incoming token on the `/api/frontend` path. Instead of using assert resulting in a 500 error we are throwing an error that is caught by the default controller and emitted back to the user as JSON. This should be the correct behaviour, since the endpoint can not give you any meaningful data without the environment that the API token holds.
- Loading branch information