Zona de administracion para agregar eventos y subir imagenes

This commit is contained in:
2020-06-16 22:44:48 -04:00
parent c09165529f
commit b943a21890
32 changed files with 1228 additions and 97 deletions

View File

@ -0,0 +1,17 @@
<?php
use ProVM\TotalSport\Common\Controller\Web\Admin\Eventos;
$app->group('/eventos', function($app) {
$app->group('/add', function($app) {
$app->get('[/]', [Eventos::class, 'add']);
$app->post('[/]', [Eventos::class, 'do_add']);
});
$app->get('[/]', Eventos::class);
});
$app->group('/evento/{evento}', function($app) {
$app->post('/edit', [Eventos::class, 'edit']);
$app->post('/add', [Eventos::class, 'addImage']);
$app->get('/delete', [Eventos::class, 'delete']);
$app->post('/image/delete', [Eventos::class, 'deleteImage']);
$app->get('[/]', [Eventos::class, 'show']);
});