make new route for text creation
This commit is contained in:
parent
72d92debab
commit
210b77b10b
1 changed files with 1 additions and 0 deletions
|
|
@ -13,5 +13,6 @@ $app->addErrorMiddleware(true, true, true);
|
||||||
|
|
||||||
$app->get('/admin', [ViewController::class, 'admin']);
|
$app->get('/admin', [ViewController::class, 'admin']);
|
||||||
$app->get('/admin/texts', [ViewController::class, 'texts']);
|
$app->get('/admin/texts', [ViewController::class, 'texts']);
|
||||||
|
$app->post('/admin/texts', [ViewController::class, 'createText']);
|
||||||
|
|
||||||
return $app;
|
return $app;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue