fix: catch-all route

This commit is contained in:
2025-11-07 01:45:47 +02:00
parent e693ee1ddf
commit d30d38dacb
2 changed files with 16 additions and 2 deletions

View File

@@ -35,9 +35,22 @@ class PageController extends Controller {
#[NoAdminRequired]
#[NoCSRFRequired]
public function index(): TemplateResponse {
$this->logger->info('NextcloudAppTemplate main page loaded');
$this->logger->info('Forum main page loaded');
return new TemplateResponse(Application::APP_ID, 'app', [
'script' => 'app',
]);
}
/**
* Main app page - catch all route
*
* @return TemplateResponse<Http::STATUS_OK,array{}>
*
* 200: OK
*/
#[NoAdminRequired]
#[NoCSRFRequired]
public function catchAll(string $path = ''): TemplateResponse {
return $this->index();
}
}