Fix main route

pull/37/head
Varun Patil 2022-09-11 20:06:28 -07:00
parent a234ca49d4
commit ee274ebf7f
2 changed files with 9 additions and 1 deletions

View File

@ -11,7 +11,7 @@ return [
'path' => '',
]
],
['name' => 'page#main', 'url' => '/favorites', 'verb' => 'GET'],
['name' => 'page#favorites', 'url' => '/favorites', 'verb' => 'GET'],
// API
['name' => 'api#days', 'url' => '/api/days', 'verb' => 'GET'],

View File

@ -69,4 +69,12 @@ class PageController extends Controller {
public function folder() {
return $this->main();
}
/**
* @NoAdminRequired
* @NoCSRFRequired
*/
public function favorites() {
return $this->main();
}
}