Remove post user/day, and reformat validators
This commit is contained in:
parent
c6679e1261
commit
4176c61c00
4 changed files with 44 additions and 53 deletions
|
@ -39,22 +39,6 @@ has error_messages => sub {
|
|||
};
|
||||
};
|
||||
|
||||
sub post_day {
|
||||
my $c = shift;
|
||||
|
||||
my $validation = $c->validation;
|
||||
|
||||
$validation->input( $c->stash->{api_json} );
|
||||
|
||||
$validation->optional('day')->is_iso_datetime;
|
||||
|
||||
return $c->api_validation_error if $validation->has_error;
|
||||
|
||||
$c->render( json => {
|
||||
success => Mojo::JSON->true,
|
||||
});
|
||||
}
|
||||
|
||||
sub post_account {
|
||||
my $c = shift;
|
||||
|
||||
|
|
Reference in a new issue