2019-09-11 07:06:21 +00:00
|
|
|
'use strict'
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| Routes
|
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
|
| Http routes are entry points to your web application. You can create
|
|
|
|
|
| routes for different URLs and bind Controller actions to them.
|
|
|
|
|
|
|
|
|
|
|
| A complete guide on routing is available here.
|
|
|
|
|
| http://adonisjs.com/docs/4.1/routing
|
|
|
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
/** @type {typeof import('@adonisjs/framework/src/Route/Manager')} */
|
|
|
|
|
const Route = use('Route')
|
|
|
|
|
|
|
|
|
|
const Match = use('App/Models/Match')
|
|
|
|
|
|
|
|
|
|
Route.get('/', async () => {
|
|
|
|
|
return {
|
|
|
|
|
greeting: 'Hello world in JSON',
|
|
|
|
|
match: await Match.first()
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
|
2019-12-27 17:38:43 +00:00
|
|
|
Route.post('/summoner-basic', 'SummonerController.basic')
|
|
|
|
|
Route.post('/summoner-overview', 'SummonerController.overview')
|
|
|
|
|
Route.post('/summoner-champions', 'SummonerController.champions')
|
2020-01-12 00:31:28 +00:00
|
|
|
Route.post('/summoner-records', 'SummonerController.records')
|
2020-01-14 21:04:45 +00:00
|
|
|
Route.post('/summoner-live', 'SummonerController.liveMatchDetails')
|
2019-09-11 07:06:21 +00:00
|
|
|
Route.post('/ddragon', 'DDragonController.index')
|
2019-10-05 22:01:58 +00:00
|
|
|
Route.post('/match', 'MatchController.index')
|
2019-11-03 17:49:58 +00:00
|
|
|
Route.post('/match-details', 'MatchController.show')
|
2019-12-01 19:44:41 +00:00
|
|
|
Route.post('/match-details-ranks', 'MatchController.showRanks')
|