diff options
Diffstat (limited to 'index.php')
-rw-r--r-- | index.php | 35 |
1 files changed, 19 insertions, 16 deletions
@@ -1498,30 +1498,33 @@ $app->group('/api/v1', function () { | |||
1498 | })->add('\Shaarli\Api\ApiMiddleware'); | 1498 | })->add('\Shaarli\Api\ApiMiddleware'); |
1499 | 1499 | ||
1500 | $app->group('', function () { | 1500 | $app->group('', function () { |
1501 | $this->get('/login', '\Shaarli\Front\Controller\LoginController:index')->setName('login'); | 1501 | /* -- PUBLIC --*/ |
1502 | $this->get('/logout', '\Shaarli\Front\Controller\LogoutController:index')->setName('logout'); | 1502 | $this->get('/login', '\Shaarli\Front\Controller\Visitor\LoginController:index')->setName('login'); |
1503 | $this->get('/picture-wall', '\Shaarli\Front\Controller\PictureWallController:index')->setName('picwall'); | 1503 | $this->get('/picture-wall', '\Shaarli\Front\Controller\Visitor\PictureWallController:index')->setName('picwall'); |
1504 | $this->get('/tag-cloud', '\Shaarli\Front\Controller\TagCloudController:cloud')->setName('tagcloud'); | 1504 | $this->get('/tag-cloud', '\Shaarli\Front\Controller\Visitor\TagCloudController:cloud')->setName('tagcloud'); |
1505 | $this->get('/tag-list', '\Shaarli\Front\Controller\TagCloudController:list')->setName('taglist'); | 1505 | $this->get('/tag-list', '\Shaarli\Front\Controller\Visitor\TagCloudController:list')->setName('taglist'); |
1506 | $this->get('/daily', '\Shaarli\Front\Controller\DailyController:index')->setName('daily'); | 1506 | $this->get('/daily', '\Shaarli\Front\Controller\Visitor\DailyController:index')->setName('daily'); |
1507 | $this->get('/daily-rss', '\Shaarli\Front\Controller\DailyController:rss')->setName('dailyrss'); | 1507 | $this->get('/daily-rss', '\Shaarli\Front\Controller\Visitor\DailyController:rss')->setName('dailyrss'); |
1508 | $this->get('/feed-atom', '\Shaarli\Front\Controller\FeedController:atom')->setName('feedatom'); | 1508 | $this->get('/feed-atom', '\Shaarli\Front\Controller\Visitor\FeedController:atom')->setName('feedatom'); |
1509 | $this->get('/feed-rss', '\Shaarli\Front\Controller\FeedController:rss')->setName('feedrss'); | 1509 | $this->get('/feed-rss', '\Shaarli\Front\Controller\Visitor\FeedController:rss')->setName('feedrss'); |
1510 | $this->get('/open-search', '\Shaarli\Front\Controller\OpenSearchController:index')->setName('opensearch'); | 1510 | $this->get('/open-search', '\Shaarli\Front\Controller\Visitor\OpenSearchController:index')->setName('opensearch'); |
1511 | 1511 | ||
1512 | $this->get('/add-tag/{newTag}', '\Shaarli\Front\Controller\TagController:addTag')->setName('add-tag'); | 1512 | $this->get('/add-tag/{newTag}', '\Shaarli\Front\Controller\Visitor\TagController:addTag')->setName('add-tag'); |
1513 | $this->get('/remove-tag/{tag}', '\Shaarli\Front\Controller\TagController:removeTag')->setName('remove-tag'); | 1513 | $this->get('/remove-tag/{tag}', '\Shaarli\Front\Controller\Visitor\TagController:removeTag')->setName('remove-tag'); |
1514 | |||
1515 | /* -- LOGGED IN -- */ | ||
1516 | $this->get('/logout', '\Shaarli\Front\Controller\Admin\LogoutController:index')->setName('logout'); | ||
1514 | 1517 | ||
1515 | $this | 1518 | $this |
1516 | ->get('/links-per-page', '\Shaarli\Front\Controller\SessionFilterController:linksPerPage') | 1519 | ->get('/links-per-page', '\Shaarli\Front\Controller\Admin\SessionFilterController:linksPerPage') |
1517 | ->setName('filter-links-per-page') | 1520 | ->setName('filter-links-per-page') |
1518 | ; | 1521 | ; |
1519 | $this | 1522 | $this |
1520 | ->get('/visibility/{visibility}', '\Shaarli\Front\Controller\SessionFilterController:visibility') | 1523 | ->get('/visibility/{visibility}', '\Shaarli\Front\Controller\Admin\SessionFilterController:visibility') |
1521 | ->setName('visibility') | 1524 | ->setName('visibility') |
1522 | ; | 1525 | ; |
1523 | $this | 1526 | $this |
1524 | ->get('/untagged-only', '\Shaarli\Front\Controller\SessionFilterController:untaggedOnly') | 1527 | ->get('/untagged-only', '\Shaarli\Front\Controller\Admin\SessionFilterController:untaggedOnly') |
1525 | ->setName('untagged-only') | 1528 | ->setName('untagged-only') |
1526 | ; | 1529 | ; |
1527 | })->add('\Shaarli\Front\ShaarliMiddleware'); | 1530 | })->add('\Shaarli\Front\ShaarliMiddleware'); |