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:
authorRené Gieling <github@dartcafe.de>2019-12-02 00:12:37 +0300
committerGitHub <noreply@github.com>2019-12-02 00:12:37 +0300
commit5b7165b7aae6948c499cb70935c4d9caf4f41e19 (patch)
tree175791231096a1f7b055a576dd84035d304e36ff /src/js/router.js
parentaf237c8ba29f6cf1480e8754304c34436916cdce (diff)
Public page (#664)
* adding acl * changing share db and migration (hash becomes token) * View public vote * Refactoring anonymizer * some more refactoring * nearly finished public voting * updated dependencies * linter autofixes
Diffstat (limited to 'src/js/router.js')
-rw-r--r--src/js/router.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/js/router.js b/src/js/router.js
index 7f3f34c8..5c9690a4 100644
--- a/src/js/router.js
+++ b/src/js/router.js
@@ -28,6 +28,7 @@ import Router from 'vue-router'
// Dynamic loading
const List = () => import('./views/PollList')
const Vote = () => import('./views/Vote')
+const PublicVote = () => import('./views/PublicVote')
Vue.use(Router)
@@ -75,6 +76,14 @@ export default new Router({
},
props: true,
name: 'create'
+ },
+ {
+ path: '/:index(index.php/)?apps/polls/s/:token',
+ components: {
+ default: PublicVote
+ },
+ props: true,
+ name: 'publicVote'
}
]
})