PHP Classes

File: front/js/router.js

Recommend this page to a friend!
  Classes of Rodrigo Faustino   Eventos   front/js/router.js   Download  
File: front/js/router.js
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Eventos
Manage events that happen at given dates
Author: By
Last change:
Date: 2 days ago
Size: 603 bytes
 

Contents

Class file image Download
import ListaEventos from './components/ListaEventos.js'; import FormularioEvento from './components/FormularioEvento.js'; import ExcluirEvento from './components/ExcluirEvento.js'; const BASE_URL = 'http://localhost:8080'; const routes = [ { path: '/', component: ListaEventos, props: { urlbase: BASE_URL } }, { path: '/cadastrar', component: FormularioEvento, props: { urlbase: BASE_URL } }, { path: '/excluir', component: ExcluirEvento, props: { urlbase: BASE_URL } } ]; const router = VueRouter.createRouter({ history: VueRouter.createWebHashHistory(), routes }); export default router;