Skip to content

Commit

Permalink
fix(javascript): swap router files
Browse files Browse the repository at this point in the history
  • Loading branch information
johnleider committed Mar 11, 2024
1 parent 8cdca3c commit 3959c62
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 1 addition & 2 deletions template/javascript/base/src/router/index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

/**
* router/index.ts
*
Expand All @@ -6,11 +7,9 @@

// Composables
import { createRouter, createWebHistory } from 'vue-router/auto'
import { setupLayouts } from 'virtual:generated-layouts'

const router = createRouter({
history: createWebHistory(process.env.BASE_URL),
extendRoutes: setupLayouts,
})

export default router
2 changes: 2 additions & 0 deletions template/javascript/essentials/src/router/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,11 @@

// Composables
import { createRouter, createWebHistory } from 'vue-router/auto'
import { setupLayouts } from 'virtual:generated-layouts'

const router = createRouter({
history: createWebHistory(process.env.BASE_URL),
extendRoutes: setupLayouts,
})

export default router

0 comments on commit 3959c62

Please sign in to comment.