54 lines
1004 B
JavaScript
54 lines
1004 B
JavaScript
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 = [
|
|
{
|
|
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({
|
|
history: createWebHistory(),
|
|
routes,
|
|
});
|
|
|
|
export default router;
|