add post route for bulk creation of nodes

This commit is contained in:
Yisroel Baum 2026-04-18 23:05:32 +03:00
parent 53cb002d0d
commit d9c9b4439e
Signed by: yisroelbaum
GPG key ID: 0FA60884F75520A9

View file

@ -22,6 +22,7 @@ $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/bulk', [NodeController::class, 'bulkCreateNodes']);
$app->post('/api/nodes', [NodeController::class, 'createNode']);
return $app;