Adding the controller of farmacia de guardia.

This commit is contained in:
Sergiotarxz 2023-09-07 18:13:57 +02:00
parent af83dabf8c
commit 72d08fb864

View File

@ -0,0 +1,16 @@
package BurguillosInfo::Controller::FarmaciaGuardia;
use v5.34.1;
use strict;
use warnings;
use BurguillosInfo::FarmaciaGuardia;
use Mojo::Base 'Mojolicious::Controller', '-signatures';
sub current($self) {
my $farmacia = BurguillosInfo::FarmaciaGuardia->new->get_current;
$self->render( json => $farmacia->serialize );
}
1;