]> git.localhorst.tv Git - alttp.git/blobdiff - app/Http/Controllers/ChannelController.php
endpoint for twitch leaderboard
[alttp.git] / app / Http / Controllers / ChannelController.php
index 78648af8dea8ece74e65e2987ea06a37e7479a58..f7d57c037137cb330d1fec49036952e3e701e664 100644 (file)
@@ -216,6 +216,12 @@ class ChannelController extends Controller {
                ];
        }
 
+       public function getGuessingGameLeaderboard(Channel $channel, $type) {
+               return [
+                       'all' => $channel->getGuessingLeaderboard(),
+               ];
+       }
+
        public function getGuessingGameMonitor($key) {
                $channel = Channel::where('access_key', '=', $key)->firstOrFail();