User edit and delete

This commit is contained in:
Juan Pablo Vial
2025-05-12 19:44:16 -04:00
parent 425b85e40d
commit d22480dcb8
2 changed files with 121 additions and 10 deletions

View File

@ -2,5 +2,9 @@
use Incoviba\Controller\API\Admin\Users;
$app->group('/users', function($app) {
$app->post('/add[/]', Users::class . ':add');
$app->post('/add[/]', [Users::class, 'add']);
});
$app->group('/user/{user_id}', function($app) {
$app->post('/edit[/]', [Users::class, 'edit']);
$app->delete('[/]', [Users::class, 'delete']);
});