add endpoint for creating a node

This commit is contained in:
Yisroel Baum 2026-04-18 21:32:12 +03:00
parent 1c1f8b5a58
commit 571c0d1196
Signed by: yisroelbaum
GPG key ID: 0FA60884F75520A9

View file

@ -22,5 +22,6 @@ $app->get('/api/texts/{textId}', [TextController::class, 'getText']);
$app->post('/api/texts', [TextController::class, 'createText']);
$app->get('/api/nodes/{textId}', [NodeController::class, 'getNodesOfText']);
$app->post('/api/nodes', [NodeController::class, 'createNode']);
return $app;