diff options
Diffstat (limited to 'apps/settings/src/router/index.ts')
-rw-r--r-- | apps/settings/src/router/index.ts | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/apps/settings/src/router/index.ts b/apps/settings/src/router/index.ts new file mode 100644 index 00000000000..9afa2e78146 --- /dev/null +++ b/apps/settings/src/router/index.ts @@ -0,0 +1,22 @@ +/** + * SPDX-FileCopyrightText: 2018 Nextcloud GmbH and Nextcloud contributors + * SPDX-License-Identifier: AGPL-3.0-or-later + */ + +import Vue from 'vue' +import Router from 'vue-router' +import { generateUrl } from '@nextcloud/router' +import routes from './routes.ts' + +Vue.use(Router) + +const router = new Router({ + mode: 'history', + // if index.php is in the url AND we got this far, then it's working: + // let's keep using index.php in the url + base: generateUrl(''), + linkActiveClass: 'active', + routes, +}) + +export default router |