added page titles and icon

This commit is contained in:
Johanna Kuehner
2024-02-27 16:53:28 +01:00
parent 3a79ed12fa
commit 601449d7e0
17 changed files with 146 additions and 145 deletions

View File

@ -1,12 +1,12 @@
// export default function ({ route, redirect }) {
// // Check if user is not authenticated and trying to access a page other than /login
// if (!isAuthenticated() && route.path !== '/login') {
// return redirect('/login');
// }
// }
export default function ({ route, redirect }) {
// Check if user is not authenticated and trying to access a page other than /login
if (!isAuthenticated() && route.path !== '/login') {
return redirect('/login');
}
}
// function isAuthenticated() {
// // Implement authentication logic
// return false
// // Return true if authenticated, false otherwise
// }
function isAuthenticated() {
// Implement authentication logic
return false
// Return true if authenticated, false otherwise
}