diff --git a/lib/BurguillosInfo/Controller/FarmaciaGuardia.pm b/lib/BurguillosInfo/Controller/FarmaciaGuardia.pm new file mode 100644 index 0000000..1145cbf --- /dev/null +++ b/lib/BurguillosInfo/Controller/FarmaciaGuardia.pm @@ -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;