@@ -7,7 +7,7 @@ import GameStatService from '../services/game-stat.service'
77import { gameActivityRouter } from '../routes/protected/game-activity'
88import LeaderboardService from '../services/leaderboard.service'
99import DataExportService from '../services/data-export.service'
10- import APIKeyService from '../services/ api-key.service '
10+ import { apiKeyRouter } from '../routes/protected/ api-key'
1111import EventService from '../services/event.service'
1212import { headlineRouter } from '../routes/protected/headline'
1313import PlayerService from '../services/player.service'
@@ -54,7 +54,6 @@ export default function protectedRoutes(app: Koa) {
5454 app . use ( service ( '/games/:gameId/game-stats' , new GameStatService ( ) , serviceOpts ) )
5555 app . use ( service ( '/games/:gameId/leaderboards' , new LeaderboardService ( ) , serviceOpts ) )
5656 app . use ( service ( '/games/:gameId/data-exports' , new DataExportService ( ) , serviceOpts ) )
57- app . use ( service ( '/games/:gameId/api-keys' , new APIKeyService ( ) , serviceOpts ) )
5857 app . use ( service ( '/games/:gameId/events' , new EventService ( ) , serviceOpts ) )
5958 app . use ( service ( '/games/:gameId/players' , new PlayerService ( ) , serviceOpts ) )
6059 app . use ( service ( '/games/:gameId/integrations' , new IntegrationService ( ) , serviceOpts ) )
@@ -63,6 +62,7 @@ export default function protectedRoutes(app: Koa) {
6362 app . use ( service ( '/games/:gameId/game-channels' , new GameChannelService ( ) , serviceOpts ) )
6463
6564 // new router-based routes
65+ app . use ( apiKeyRouter ( ) . routes ( ) )
6666 app . use ( billingRouter ( ) . routes ( ) )
6767 app . use ( gameActivityRouter ( ) . routes ( ) )
6868 app . use ( gameRouter ( ) . routes ( ) )
0 commit comments