mirror of
https://github.com/vkaelin/LeagueStats.git
synced 2026-03-25 21:07:27 +00:00
20 lines
469 B
JavaScript
20 lines
469 B
JavaScript
|
|
'use strict'
|
||
|
|
|
||
|
|
const MatchHelper = use('App/Helpers/MatchHelper')
|
||
|
|
|
||
|
|
class MatchController {
|
||
|
|
/**
|
||
|
|
* POST - Return data from matches searched by gameIds
|
||
|
|
*/
|
||
|
|
async index({ request, response }) {
|
||
|
|
console.log('More Matches Request')
|
||
|
|
const account = request.input('account')
|
||
|
|
const gameIds = request.input('gameIds')
|
||
|
|
|
||
|
|
const result = await MatchHelper.getMatches(account, gameIds)
|
||
|
|
return response.json(result)
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
module.exports = MatchController
|