rename route for nodes and adjust calls to route

This commit is contained in:
Yisroel Baum 2026-04-18 20:57:40 +03:00
parent adc72961d0
commit f5a8b8447f
Signed by: yisroelbaum
GPG key ID: 0FA60884F75520A9
4 changed files with 6 additions and 5 deletions

View file

@ -19,7 +19,8 @@ $app->get('/admin/texts/{textId}', [ViewController::class, 'text']);
$app->get('/api/texts', [TextController::class, 'getTexts']);
$app->get('/api/texts/{textId}', [TextController::class, 'getText']);
$app->get('/api/texts/{textId}/nodes', [NodeController::class, 'getNodes']);
$app->post('/api/texts', [TextController::class, 'createText']);
$app->get('/api/nodes/{textId}', [NodeController::class, 'getNodesOfText']);
return $app;