import { createRouter, createWebHistory } from 'vue-router'
import { homeRouter } from './home.router'
import { blogRouter } from './blog.router'
import { catalogRouter } from './catalog.router'
import { codeRouter } from './code.router'
import { contactRouter } from './contact.router'
import { enginesRouter } from './engines.router'
import { howtosRouter } from './howtos.router'
import { teamRouter } from './team.router'
import { buildsRouter } from './builds.router'
import { storesRouter } from './stores.router'

export const router = createRouter({
  history: createWebHistory(),
  routes: [
    ...homeRouter,
    ...blogRouter,
    ...catalogRouter,
    ...codeRouter,
    ...contactRouter,
    ...enginesRouter,
    ...howtosRouter,
    ...teamRouter,
    ...buildsRouter,
    ...storesRouter,
  ],
  scrollBehavior() {
    return { top: 0 }
  },
})
