Skip to content

Instantly share code, notes, and snippets.

@Maxim-Kolmogorov
Last active November 6, 2022 10:39
Show Gist options
  • Save Maxim-Kolmogorov/299bb13983ac02dc2250f7d1dcfef83b to your computer and use it in GitHub Desktop.
Save Maxim-Kolmogorov/299bb13983ac02dc2250f7d1dcfef83b to your computer and use it in GitHub Desktop.
Laravel 9 + Vite + Vue.js + SSR = example, part 2
import { createWebHistory, createRouter } from 'vue-router';
import Home from './pages/Home.vue';
import About from './pages/About.vue';
const routes = [
{ path: '/', name: 'home', component: Home },
{ path: '/about', name: 'about', component: About },
];
const router = createRouter({
history: createWebHistory(),
routes,
});
export default router;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment