New routes added
This commit is contained in:
parent
78964d7297
commit
813f4af63f
2 changed files with 15 additions and 0 deletions
|
@ -152,8 +152,11 @@ sub startup {
|
|||
|
||||
$api_v1_org->post('/graphs')->to('api-v1-organisation-graphs#index');
|
||||
$api_v1_org->post('/snippets')->to('api-v1-organisation-snippets#index');
|
||||
$api_v1_org->post('/payroll')->to('api-organisation#post_payroll_read');
|
||||
$api_v1_org->post('/payroll/add')->to('api-organisation#post_payroll_add');
|
||||
$api_v1_org->post('/supplier')->to('api-organisation#post_supplier_read');
|
||||
$api_v1_org->post('/supplier/add')->to('api-organisation#post_supplier_add');
|
||||
$api_v1_org->post('/employee')->to('api-organisation#post_employee_read');
|
||||
$api_v1_org->post('/employee/add')->to('api-organisation#post_employee_add');
|
||||
|
||||
my $admin_routes = $r->under('/admin')->to('admin#under');
|
||||
|
|
|
@ -62,6 +62,10 @@ has error_messages => sub {
|
|||
};
|
||||
};
|
||||
|
||||
sub post_payroll_read {
|
||||
|
||||
}
|
||||
|
||||
sub post_payroll_add {
|
||||
my $c = shift;
|
||||
|
||||
|
@ -115,6 +119,10 @@ sub post_payroll_add {
|
|||
});
|
||||
}
|
||||
|
||||
sub post_supplier_read {
|
||||
|
||||
}
|
||||
|
||||
sub post_supplier_add {
|
||||
my $c = shift;
|
||||
|
||||
|
@ -148,6 +156,10 @@ sub post_supplier_add {
|
|||
});
|
||||
}
|
||||
|
||||
sub post_employee_read {
|
||||
|
||||
}
|
||||
|
||||
sub post_employee_add {
|
||||
my $c = shift;
|
||||
|
||||
|
|
Reference in a new issue