Added error flag to validation errors and added age_range api endpoint
This commit is contained in:
parent
6fac2058bc
commit
b03b7ccc5f
3 changed files with 25 additions and 0 deletions
|
@ -25,4 +25,13 @@ __PACKAGE__->has_many(
|
|||
{ cascade_copy => 0, cascade_delete => 0 },
|
||||
);
|
||||
|
||||
sub TO_JSON {
|
||||
my $self = shift;
|
||||
|
||||
return {
|
||||
id => $self->id,
|
||||
string => $self->string,
|
||||
};
|
||||
}
|
||||
|
||||
1;
|
||||
|
|
Reference in a new issue