New routes added

This commit is contained in:
Finn 2017-09-19 14:41:11 +01:00
parent 78964d7297
commit 813f4af63f
2 changed files with 15 additions and 0 deletions

View file

@ -152,8 +152,11 @@ sub startup {
$api_v1_org->post('/graphs')->to('api-v1-organisation-graphs#index'); $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('/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('/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('/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'); $api_v1_org->post('/employee/add')->to('api-organisation#post_employee_add');
my $admin_routes = $r->under('/admin')->to('admin#under'); my $admin_routes = $r->under('/admin')->to('admin#under');

View file

@ -62,6 +62,10 @@ has error_messages => sub {
}; };
}; };
sub post_payroll_read {
}
sub post_payroll_add { sub post_payroll_add {
my $c = shift; my $c = shift;
@ -115,6 +119,10 @@ sub post_payroll_add {
}); });
} }
sub post_supplier_read {
}
sub post_supplier_add { sub post_supplier_add {
my $c = shift; my $c = shift;
@ -148,6 +156,10 @@ sub post_supplier_add {
}); });
} }
sub post_employee_read {
}
sub post_employee_add { sub post_employee_add {
my $c = shift; my $c = shift;