Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/polls.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordartcafe <github@dartcafe.de>2020-01-27 09:40:47 +0300
committerdartcafe <github@dartcafe.de>2020-01-27 09:40:47 +0300
commit849c52bc55ae243e0cd366b0385043ca895d14e6 (patch)
tree69edd4d09ae47a3b39953e75fa81f7257e75f5ee /src/js/router.js
parent9576e7f0e7fee64a32975a82606993a1a78c1991 (diff)
Display error for not found or no access #772
Diffstat (limited to 'src/js/router.js')
-rw-r--r--src/js/router.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/js/router.js b/src/js/router.js
index d11cbc71..9547c76e 100644
--- a/src/js/router.js
+++ b/src/js/router.js
@@ -30,6 +30,7 @@ import { generateUrl } from '@nextcloud/router'
const List = () => import('./views/PollList')
const Vote = () => import('./views/Vote')
const PublicVote = () => import('./views/PublicVote')
+const NotFound = () => import('./views/NotFound')
Vue.use(Router)
@@ -56,6 +57,13 @@ export default new Router({
name: 'list'
},
{
+ path: '/not-found',
+ components: {
+ default: NotFound
+ },
+ name: 'notfound'
+ },
+ {
path: '/vote/:id',
components: {
default: Vote