Add leaderboard stats endpoint and trends

This commit is contained in:
Tom Bloor 2017-06-06 22:30:02 +01:00
parent daeeac811c
commit 9cd9f8079e
6 changed files with 557 additions and 0 deletions

View file

@ -148,6 +148,7 @@ sub startup {
$api->post('/fetchuser')->to('api-api#post_fetchuser');
$api->post('/user-history')->to('api-user#post_user_history');
$api->post('/stats')->to('api-stats#post_index');
$api->post('/stats/leaderboard')->to('api-stats#post_leaderboards');
my $api_admin = $api->under('/')->to('api-admin#auth');