Se agregan menus
This commit is contained in:
23
resources/routes/web/admin/galeria.php
Normal file
23
resources/routes/web/admin/galeria.php
Normal 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']);
|
||||
});
|
@ -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']);
|
||||
|
6
resources/routes/web/galeria.php
Normal file
6
resources/routes/web/galeria.php
Normal file
@ -0,0 +1,6 @@
|
||||
<?php
|
||||
use ProVM\TotalSport\Common\Controller\Web\Galeria;
|
||||
|
||||
$app->group('/evento/{evento}', function($app) {
|
||||
$app->get('[/]', Galeria::class);
|
||||
});
|
9
resources/routes/web/servicios.php
Normal file
9
resources/routes/web/servicios.php
Normal 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']);
|
||||
});
|
Reference in New Issue
Block a user