router
This commit is contained in:
+42
-1
@@ -1,7 +1,48 @@
|
||||
import { createRouter, createWebHistory } from 'vue-router';
|
||||
|
||||
// Import all view components
|
||||
import Dashboard from '../views/Dashboard.vue';
|
||||
import Jobs from '../views/Jobs.vue';
|
||||
import Applications from '../views/Applications.vue';
|
||||
import SavedJobs from '../views/SavedJobs.vue';
|
||||
import Profile from '../views/Profile.vue';
|
||||
import Settings from '../views/Settings.vue';
|
||||
|
||||
const routes = [
|
||||
// Add your routes here
|
||||
{
|
||||
path: '/',
|
||||
redirect: '/dashboard'
|
||||
},
|
||||
{
|
||||
path: '/dashboard',
|
||||
name: 'dashboard',
|
||||
component: Dashboard
|
||||
},
|
||||
{
|
||||
path: '/jobs',
|
||||
name: 'jobs',
|
||||
component: Jobs
|
||||
},
|
||||
{
|
||||
path: '/applications',
|
||||
name: 'applications',
|
||||
component: Applications
|
||||
},
|
||||
{
|
||||
path: '/saved',
|
||||
name: 'saved',
|
||||
component: SavedJobs
|
||||
},
|
||||
{
|
||||
path: '/profile',
|
||||
name: 'profile',
|
||||
component: Profile
|
||||
},
|
||||
{
|
||||
path: '/settings',
|
||||
name: 'settings',
|
||||
component: Settings
|
||||
}
|
||||
];
|
||||
|
||||
const router = createRouter({
|
||||
|
||||
Reference in New Issue
Block a user