Se agregan menus

This commit is contained in:
2020-12-12 00:25:59 -03:00
parent decd1469b4
commit 8bc3037e13
43 changed files with 1802 additions and 77 deletions

View File

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

View File

@ -1,6 +1,12 @@
<?php
use ProVM\TotalSport\Common\Controller\Web\Eventos;
$app->group('/evento/{evento}', function($app) {
$app->get('[/]', Eventos::class);
$app->group('/eventos', function($app) {
$app->get('/bienestar', [Eventos::class, 'bienestar']);
$app->get('/carreras', [Eventos::class, 'carreras']);
$app->get('/deportivos', [Eventos::class, 'deportivos']);
$app->get('/ligas', [Eventos::class, 'ligas']);
$app->get('/team', [Eventos::class, 'team']);
});
//$app->get('/servicios/deportivos', [Servicios::class, 'deportivos']);

View File

@ -0,0 +1,6 @@
<?php
use ProVM\TotalSport\Common\Controller\Web\Galeria;
$app->group('/evento/{evento}', function($app) {
$app->get('[/]', Galeria::class);
});

View File

@ -0,0 +1,9 @@
<?php
use ProVM\TotalSport\Common\Controller\Web\Servicios;
$app->group('/servicios', function($app) {
$app->get('/deportivos', [Servicios::class, 'deportivos']);
$app->get('/animacion', [Servicios::class, 'animacion']);
$app->get('/arriendos', [Servicios::class, 'arriendos']);
$app->get('/culturales', [Servicios::class, 'culturales']);
});