Zona de administracion para agregar eventos y subir imagenes
This commit is contained in:
17
resources/routes/web/admin/eventos.php
Normal file
17
resources/routes/web/admin/eventos.php
Normal 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']);
|
||||
});
|
Reference in New Issue
Block a user