mirror of
https://github.com/Unleash/unleash.git
synced 2025-01-11 00:08:30 +01:00
9cc7b8fdeb
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. |
||
---|---|---|
.. | ||
lib | ||
mailtemplates | ||
migrations | ||
test | ||
migrator.ts | ||
server-dev.ts | ||
server.ts |