Skip to content

Commit 95cca77

Browse files
add Authorisation guard to route
1 parent 31f25ad commit 95cca77

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

generator/templates/Default/src/router.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
import Vue from 'vue';
22
import Router from 'vue-router';
3+
<%_ if (options.useAuthorisation) { _%>
4+
import AuthorisationGuard from './guards/AuthorisationGuard';
5+
<%_ } _%>
36

47
Vue.use(Router);
58

0 commit comments

Comments
 (0)