Adding the controller of farmacia de guardia.
This commit is contained in:
parent
af83dabf8c
commit
72d08fb864
16
lib/BurguillosInfo/Controller/FarmaciaGuardia.pm
Normal file
16
lib/BurguillosInfo/Controller/FarmaciaGuardia.pm
Normal 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;
|
Loading…
Reference in New Issue
Block a user