Added organisation graph endpoint and tests

This commit is contained in:
Tom Bloor 2017-08-29 12:42:27 +01:00
parent 7ed2636978
commit 3ae8a43df4
5 changed files with 214 additions and 0 deletions

View file

@ -155,6 +155,12 @@ sub startup {
$api->post('/stats')->to('api-stats#post_index');
$api->post('/stats/leaderboard')->to('api-stats#post_leaderboards');
my $api_v1 = $api->under('/v1');
my $api_v1_org = $api_v1->under('/organisation')->to('api-v1-organisation#auth');
$api_v1_org->post('/graphs')->to('api-v1-organisation-graphs#index');
my $admin_routes = $r->under('/admin')->to('admin#under');
$admin_routes->get('/home')->to('admin#home');