Navigationsbar angepasst und post view hinzugefügt (geht nicht wegen keine datenbank aanschluss)

This commit is contained in:
danielvici123
2025-02-18 18:33:40 +01:00
parent eca851dc08
commit 4411c7def6
6 changed files with 75 additions and 98 deletions

View File

@@ -10,6 +10,7 @@ import settings from "../components/settings.vue";
import nottifications from "../components/notifications.vue";
import register from "../components/register.vue";
import search from "../components/search.vue";
import post from '../components/posts.vue';
// The routing does not happen automatically
// Each route has to be defined here, or it won't work.
const routes = [
@@ -47,6 +48,12 @@ const routes = [
path: "/search",
name: "Search",
component: search,
},
{
path: '/post/:id',
name: 'PostDetail',
component: post,
props: true
}
]
@@ -55,4 +62,4 @@ const router = createRouter({
routes,
});
export default router;
export default router;