add route for getting nodes of text
This commit is contained in:
parent
6ae66055cf
commit
37c519fb2a
1 changed files with 2 additions and 0 deletions
|
|
@ -5,6 +5,7 @@ use Psr\Http\Message\ServerRequestInterface as Request;
|
|||
use DI\Bridge\Slim\Bridge;
|
||||
use App\View\ViewController;
|
||||
use App\Text\TextController;
|
||||
use App\Node\NodeRepository;
|
||||
|
||||
$container = require __DIR__.'/container.php';
|
||||
$app = Bridge::create($container);
|
||||
|
|
@ -18,6 +19,7 @@ $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', [TextController::class, 'getNodes']);
|
||||
$app->post('/api/texts', [TextController::class, 'createText']);
|
||||
|
||||
return $app;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue