diff --git a/appinfo/routes.php b/appinfo/routes.php index 7c63c51b..e11adb3c 100644 --- a/appinfo/routes.php +++ b/appinfo/routes.php @@ -15,6 +15,14 @@ return [ ['name' => 'page#videos', 'url' => '/videos', 'verb' => 'GET'], ['name' => 'page#archive', 'url' => '/archive', 'verb' => 'GET'], ['name' => 'page#thisday', 'url' => '/thisday', 'verb' => 'GET'], + ['name' => 'page#tags', 'url' => '/tags/{name}', 'verb' => 'GET', + 'requirements' => [ + 'name' => '.*', + ], + 'defaults' => [ + 'name' => '', + ] + ], // API ['name' => 'api#days', 'url' => '/api/days', 'verb' => 'GET'], diff --git a/lib/Controller/PageController.php b/lib/Controller/PageController.php index 3f62dfa7..c89a385f 100644 --- a/lib/Controller/PageController.php +++ b/lib/Controller/PageController.php @@ -104,4 +104,12 @@ class PageController extends Controller { public function thisday() { return $this->main(); } + + /** + * @NoAdminRequired + * @NoCSRFRequired + */ + public function tags() { + return $this->main(); + } } diff --git a/src/App.vue b/src/App.vue index 55e702dd..41fa8437 100644 --- a/src/App.vue +++ b/src/App.vue @@ -27,6 +27,10 @@ :title="t('memories', 'On this day')"> + + +