This repository has been archived on 2023-08-16. You can view files and clone it, but cannot push or open issues or pull requests.
Foodloop-Server/lib/Pear/LocalLoop/Controller/Api/Info.pm

13 lines
231 B
Perl
Raw Normal View History

package Pear::LocalLoop::Controller::Api::Info;
use Mojo::Base 'Mojolicious::Controller';
sub get_ages {
my $c = shift;
my $ages = $c->schema->resultset('AgeRange');
$c->render( json => { ages => [ $ages->all ] } );
}
1;