Changed endpoints in API
This commit is contained in:
parent
616181def3
commit
e388d360ac
3 changed files with 19 additions and 19 deletions
|
@ -144,9 +144,9 @@ sub startup {
|
|||
$api->post('/stats')->to('api-stats#post_index');
|
||||
$api->post('/stats/leaderboard')->to('api-stats#post_leaderboards');
|
||||
$api->post('/outgoing-transactions')->to('api-transactions#post_transaction_list_purchases');
|
||||
$api->post('/org/payroll')->to('api-organisation#post_payroll');
|
||||
$api->post('/org/supplier')->to('api-organisation#post_supplier');
|
||||
$api->post('/org/employee')->to('api-organisation#post_employee');
|
||||
$api->post('/org/payroll/add')->to('api-organisation#post_payroll_add');
|
||||
$api->post('/org/supplier/add')->to('api-organisation#post_supplier_add');
|
||||
$api->post('/org/employee/add')->to('api-organisation#post_employee_add');
|
||||
|
||||
my $api_v1 = $api->under('/v1');
|
||||
|
||||
|
|
|
@ -62,7 +62,7 @@ has error_messages => sub {
|
|||
};
|
||||
};
|
||||
|
||||
sub post_payroll {
|
||||
sub post_payroll_add {
|
||||
my $c = shift;
|
||||
|
||||
my $user = $c->stash->{api_user};
|
||||
|
@ -115,7 +115,7 @@ sub post_payroll {
|
|||
});
|
||||
}
|
||||
|
||||
sub post_supplier {
|
||||
sub post_supplier_add {
|
||||
my $c = shift;
|
||||
|
||||
my $user = $c->stash->{api_user};
|
||||
|
@ -148,7 +148,7 @@ sub post_supplier {
|
|||
});
|
||||
}
|
||||
|
||||
sub post_employee {
|
||||
sub post_employee_add {
|
||||
my $c = shift;
|
||||
|
||||
my $user = $c->stash->{api_user};
|
||||
|
|
Reference in a new issue