diff --git a/bootstrap/app.php b/bootstrap/app.php index 37d86df..cd895b3 100644 --- a/bootstrap/app.php +++ b/bootstrap/app.php @@ -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;