1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-11 00:08:30 +01:00
unleash.unleash/src
Fredrik Strand Oseberg 9cc7b8fdeb
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.
2023-02-13 08:40:04 +01:00
..
lib fix: replace assert with error (#3074) 2023-02-13 08:40:04 +01:00
mailtemplates refactor: move docs into new structure / fix links for SEO (#2416) 2022-11-22 09:05:30 +00:00
migrations fix: limit creation of other users PATs (adapting) (#3019) 2023-01-31 08:40:23 +00:00
test feat: Gradual schema improvements (#3075) 2023-02-10 15:05:57 +01:00
migrator.ts fix: be explicit when specifying time & replace moment with date-fns (#1072) 2021-11-02 15:13:46 +01:00
server-dev.ts Add maintenance toast (#3052) 2023-02-07 09:23:56 +02:00
server.ts Define exports for enterprise (#2435) 2022-11-17 13:02:40 +02:00