rename route for nodes and adjust calls to route
This commit is contained in:
parent
adc72961d0
commit
f5a8b8447f
4 changed files with 6 additions and 5 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue