group('/dashboard', function () { $this->get('', 'UserFrosting\Sprinkle\Admin\Controller\AdminController:pageDashboard') ->setName('dashboard'); })->add('authGuard'); $app->group('/api/dashboard', function () { $this->post('/clear-cache', 'UserFrosting\Sprinkle\Admin\Controller\AdminController:clearCache'); })->add('authGuard'); $app->group('/modals/dashboard', function () { $this->get('/clear-cache', 'UserFrosting\Sprinkle\Admin\Controller\AdminController:getModalConfirmClearCache'); })->add('authGuard');