add view for single text

This commit is contained in:
Yisroel Baum 2026-04-17 09:22:55 +03:00
parent 5b2d85fb92
commit 68da48aedd
Signed by: yisroelbaum
GPG key ID: 0FA60884F75520A9
4 changed files with 30 additions and 0 deletions

View file

@ -14,8 +14,10 @@ $app->addErrorMiddleware(true, true, true);
$app->get('/admin', [ViewController::class, 'admin']);
$app->get('/admin/texts', [ViewController::class, 'texts']);
$app->get('/admin/texts/{textId}', [ViewController::class, 'text']);
$app->get('/api/texts', [TextController::class, 'getTexts']);
$app->get('/api/texts/{textId}', [TextController::class, 'getText']);
$app->post('/api/texts', [TextController::class, 'createText']);
return $app;