diff --git a/app/controllers/front.php b/app/controllers/front.php index c4185eb..78cf6d7 100644 --- a/app/controllers/front.php +++ b/app/controllers/front.php @@ -19,9 +19,9 @@ $front->get('/restore/{id}', 'Poche\Controller\EntryController::restoreAction') // bookmarks $front->get('/bookmarks', 'Poche\Controller\BookmarkController::indexAction'); -$front->get('/star/{id}', 'Poche\Controller\BookmarkController::addAction') +$front->match('/star/{id}', 'Poche\Controller\BookmarkController::addAction') ->bind('star_entry'); -$front->get('/unstar/{id}', 'Poche\Controller\BookmarkController::removeAction') +$front->match('/unstar/{id}', 'Poche\Controller\BookmarkController::removeAction') ->bind('unstar_entry'); // archive diff --git a/app/views/_entry.twig b/app/views/_entry.twig index add0867..191eb22 100644 --- a/app/views/_entry.twig +++ b/app/views/_entry.twig @@ -10,12 +10,18 @@