mirror of
https://github.com/Cian-H/am-d-model.eu.git
synced 2025-12-23 05:51:57 +00:00
Added debug statements
This commit is contained in:
@@ -1,11 +1,16 @@
|
||||
import { goto } from "$app/navigation";
|
||||
import { error } from '@sveltejs/kit';
|
||||
import { logger } from "$lib/server/logger.js";
|
||||
|
||||
export const navigation = {
|
||||
toHome: () => goto("/"),
|
||||
toAbout: () => goto("/about"),
|
||||
toContact: () => goto("/contact"),
|
||||
toRepository: () => goto("/repo"),
|
||||
toRepository: () => {
|
||||
logger.debug("Entering '/lib/navigation.js'.toRepository");
|
||||
goto("/repo");
|
||||
logger.debug("Exiting '/lib/navigation.js'.toRepository");
|
||||
},
|
||||
to404: () => {
|
||||
throw error(404, 'Page not found');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user