-
-
Save parzibyte/43c8e76293bf307ecd3a5813c4a5ef36 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Vue from 'vue' | |
import Router from 'vue-router' | |
import NuevaReceta from '@/components/NuevaReceta' | |
import Recetas from '@/components/Recetas' | |
import Recetario from '@/components/Recetario' | |
import EditarReceta from '@/components/EditarReceta' | |
import DetalleReceta from '@/components/DetalleReceta' | |
import AcercaDe from '@/components/AcercaDe' | |
Vue.use(Router); | |
export default new Router({ | |
routes: [{ | |
path: '/nueva-receta', | |
name: 'NuevaReceta', | |
component: NuevaReceta | |
}, | |
{ | |
path: '/recetas', | |
name: 'Recetas', | |
component: Recetas, | |
}, | |
{ | |
path: '/', | |
name: 'Recetario', | |
component: Recetario, | |
}, | |
{ | |
path: '/receta/editar/:id', | |
name: 'EditarReceta', | |
component: EditarReceta, | |
}, | |
{ | |
path: '/receta/:id', | |
name: 'DetalleReceta', | |
component: DetalleReceta, | |
}, | |
{ | |
path: '/acerca-de', | |
name: 'AcercaDe', | |
component: AcercaDe, | |
}, | |
] | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment