diff --git a/common/Controller/Web/Documentos.php b/common/Controller/Web/Documentos.php new file mode 100644 index 0000000..e4b9c05 --- /dev/null +++ b/common/Controller/Web/Documentos.php @@ -0,0 +1,25 @@ +get('folders.upload'), + $documento . '.pdf' + ]); + $existe = file_exists($filename); + $output = [ + 'informacion' => $documento, + 'archivo' => $filename, + 'existe' => $existe + ]; + $response->getBody()->write(json_encode($output)); + return $response + ->withHeader('Content-Type', 'application/json') + ->withStatus(201); + } +} diff --git a/public/assets/styles/home.css b/public/assets/styles/home.css index ca6f9c6..656d336 100644 --- a/public/assets/styles/home.css +++ b/public/assets/styles/home.css @@ -129,7 +129,7 @@ #indice .img, #indice .img img { max-height: 20rem !important; - min-height: 10rem !important; + min-height: 20rem !important; } #indice .contenido { padding-top: 5rem !important; diff --git a/resources/routes/web/documentos.php b/resources/routes/web/documentos.php new file mode 100644 index 0000000..3b4170b --- /dev/null +++ b/resources/routes/web/documentos.php @@ -0,0 +1,6 @@ +group('/documentos', function($app) { + $app->get('/existe/{documento}', [Documentos::class, 'existe']); +}); diff --git a/resources/views/home/indice.blade.php b/resources/views/home/indice.blade.php index dee3668..e34e210 100644 --- a/resources/views/home/indice.blade.php +++ b/resources/views/home/indice.blade.php @@ -36,6 +36,7 @@ @push('scripts')