jobs/src/router/index.js

54 lines
1004 B
JavaScript
Raw Normal View History

2025-04-02 10:13:11 +00:00
import { createRouter, createWebHistory } from 'vue-router';
2025-04-02 10:42:04 +00:00
// 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';
2025-04-02 10:13:11 +00:00
const routes = [
2025-04-02 10:42:04 +00:00
{
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
}
2025-04-02 10:13:11 +00:00
];
const router = createRouter({
history: createWebHistory(),
routes,
});
export default router;