API Not found error message
Some checks failed
ci/woodpecker/push/build Pipeline failed

This commit is contained in:
Alessio Davoli 2024-03-06 00:08:04 +01:00
parent 2c6a1e570a
commit fe9a3f3f25

View file

@ -10,7 +10,7 @@ export async function load({ fetch }) {
const response = await fetch(`${API_URL}/route-categories`); const response = await fetch(`${API_URL}/route-categories`);
categories = await response.json(); categories = await response.json();
} catch (ex) { } catch (ex) {
error(500); error(404, "API Not Found");
} }
return { categories }; return { categories };