Full-Stack Web Development with Vue.js and Node

(singke) #1

Building Authentication with passport.js Chapter 6


Vue.use(Router);

export default new Router({
mode: 'history',
routes: [
{
path: '/',
name: 'Home',
component: Home,
},
{
path: '/contact',
name: 'Contact',
component: Contact,
},
{
path: '/movies/add',
name: 'AddMovie',
component: AddMovie,
},
{
path: '/movies/:id',
name: 'Movie',
component: Movie,
},
{
path: '/users/register',
name: 'Register',
component: Register,
},
{
path: '/users/login',
name: 'Login',
component: Login,
},
],
});
Free download pdf