mirror of
https://github.com/vkaelin/LeagueStats.git
synced 2026-03-25 12:57:28 +00:00
14 lines
526 B
TypeScript
14 lines
526 B
TypeScript
|
|
import { HttpContextContract } from '@ioc:Adonis/Core/HttpContext'
|
||
|
|
import SummonerBasicValidator from 'App/Validators/SummonerBasicValidator'
|
||
|
|
|
||
|
|
export default class SummonersController {
|
||
|
|
public async basic({ request, response }: HttpContextContract) {
|
||
|
|
const { summoner, region } = await request.validate(SummonerBasicValidator)
|
||
|
|
return response.json('BASIC REQUEST from ' + summoner + ' - ' + region)
|
||
|
|
}
|
||
|
|
|
||
|
|
public async overview({ response }: HttpContextContract) {
|
||
|
|
return response.json('OVERVIEW REQUEST')
|
||
|
|
}
|
||
|
|
}
|