Remove unneccessary endpoint for AgeRanges

This commit is contained in:
Tom Bloor 2017-06-13 21:45:23 +01:00
parent 9523db7684
commit 6f5e0fb31e
2 changed files with 0 additions and 13 deletions

View file

@ -125,7 +125,6 @@ sub startup {
my $c = shift; my $c = shift;
$c->respond_to(any => { data => '', status => 200 }); $c->respond_to(any => { data => '', status => 200 });
}); });
$api_public_get->get('/info/ages')->to('api-info#get_ages');
# Always available api routes # Always available api routes
my $api_public = $api_public_get->under('/')->to('api-auth#check_json'); my $api_public = $api_public_get->under('/')->to('api-auth#check_json');

View file

@ -1,12 +0,0 @@
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;