aboutsummaryrefslogtreecommitdiff
path: root/src/router.ts
diff options
context:
space:
mode:
authorGravatar Corentin Thomasset <corentin.thomasset74@gmail.com> 2022-05-24 00:07:54 +0200
committerGravatar Corentin Thomasset <corentin.thomasset74@gmail.com> 2022-05-24 00:07:54 +0200
commit6becdbb42329e1bdecf158707e37ba9f13ba1d2c (patch)
treed295e11b473d72685016ee9659604538da601db0 /src/router.ts
parent5ce1262fb44864b829dac09d5c0b9b68d522ceb7 (diff)
downloadit-tools-6becdbb42329e1bdecf158707e37ba9f13ba1d2c.tar.gz
it-tools-6becdbb42329e1bdecf158707e37ba9f13ba1d2c.tar.zst
it-tools-6becdbb42329e1bdecf158707e37ba9f13ba1d2c.zip
refactor(config): added config management with figue
Diffstat (limited to 'src/router.ts')
-rw-r--r--src/router.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/router.ts b/src/router.ts
index 05f9fa3..38bda96 100644
--- a/src/router.ts
+++ b/src/router.ts
@@ -3,6 +3,7 @@ import { createRouter, createWebHistory } from 'vue-router';
import HomePage from './pages/Home.page.vue';
import NotFound from './pages/404.page.vue';
import { tools } from './tools';
+import { config } from './config';
const toolsRoutes = tools.map(({ path, name, component, ...config }) => ({
path,
@@ -17,7 +18,7 @@ const toolsRedirectRoutes = tools
);
const router = createRouter({
- history: createWebHistory(import.meta.env.BASE_URL),
+ history: createWebHistory(config.app.baseUrl),
routes: [
{
path: '/',