LeagueStats/server/app/Controllers/Http/MatchController.js
2019-10-06 00:01:58 +02:00

19 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