From 571c0d1196cc4e761ce4e0eadda86e3664f1f5a1 Mon Sep 17 00:00:00 2001 From: Yisroel Baum Date: Sat, 18 Apr 2026 21:32:12 +0300 Subject: [PATCH] add endpoint for creating a node --- bootstrap/app.php | 1 + 1 file changed, 1 insertion(+) 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;