This commit is contained in:
parent
2c6a1e570a
commit
fe9a3f3f25
1 changed files with 1 additions and 1 deletions
|
@ -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 };
|
||||||
|
|
Loading…
Reference in a new issue