diff --git a/appinfo/routes.php b/appinfo/routes.php index 0fbcb3c3e..af060c8ec 100644 --- a/appinfo/routes.php +++ b/appinfo/routes.php @@ -23,6 +23,7 @@ function w($base, $param) ['name' => 'Page#thisday', 'url' => '/thisday', 'verb' => 'GET'], ['name' => 'Page#map', 'url' => '/map', 'verb' => 'GET'], ['name' => 'Page#explore', 'url' => '/explore', 'verb' => 'GET'], + ['name' => 'Page#nxsetup', 'url' => '/nxsetup', 'verb' => 'GET'], // Routes with params w(['name' => 'Page#folder', 'url' => '/folders/{path}', 'verb' => 'GET'], 'path'), diff --git a/lib/Controller/PageController.php b/lib/Controller/PageController.php index bf52ff6e9..0d9b292fd 100644 --- a/lib/Controller/PageController.php +++ b/lib/Controller/PageController.php @@ -234,4 +234,16 @@ public function explore() { return $this->main(); } + + /** + * @PublicPage + * + * @NoAdminRequired + * + * @NoCSRFRequired + */ + public function nxsetup() + { + return $this->main(); + } } diff --git a/src/App.vue b/src/App.vue index 136719f65..d57a33b71 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,5 +1,7 @@ + + + + diff --git a/src/router.ts b/src/router.ts index 342c4669d..9e09c4c04 100644 --- a/src/router.ts +++ b/src/router.ts @@ -6,6 +6,7 @@ import Timeline from './components/Timeline.vue'; import Explore from './components/Explore.vue'; import SplitTimeline from './components/SplitTimeline.vue'; import ClusterView from './components/ClusterView.vue'; +import NativeXSetup from './native/Setup.vue'; Vue.use(Router); @@ -150,5 +151,14 @@ export default new Router({ rootTitle: t('memories', 'Explore'), }), }, + + { + path: '/nxsetup', + component: NativeXSetup, + name: 'nxsetup', + props: (route) => ({ + rootTitle: t('memories', 'Setup'), + }), + }, ], });