Move documentation to top level and regenerate for backend code
This commit is contained in:
@@ -18,7 +18,7 @@ class DraftBoard extends Controller {
|
||||
* @param req
|
||||
* @param res
|
||||
* @param next
|
||||
* @returns
|
||||
* @returns Promise<void>
|
||||
*/
|
||||
async get_available_players(req, res, next) {
|
||||
const Player = this.models.get('Player')
|
||||
@@ -36,8 +36,8 @@ class DraftBoard extends Controller {
|
||||
* adds the selected player to the team
|
||||
* @param req
|
||||
* @param res
|
||||
* @param next
|
||||
* @returns
|
||||
* @param next
|
||||
* @returns Promise<void>
|
||||
*/
|
||||
async draft_player_to_team(req, res, next) {
|
||||
if ( !req.body.player_id ) {
|
||||
|
||||
@@ -17,8 +17,8 @@ class ScoresController extends Controller {
|
||||
* Returns the weekly scores
|
||||
* @param req
|
||||
* @param res
|
||||
* @param next
|
||||
* @returns
|
||||
* @param next
|
||||
* @returns Promise<void>
|
||||
*/
|
||||
async get_weekly_scores(req, res, next) {
|
||||
const Matchup = this.models.get('Matchup')
|
||||
|
||||
@@ -59,7 +59,7 @@ class SportsDataService extends Service {
|
||||
/**
|
||||
* Fetches a list of player stats for all players in the league for the given week.
|
||||
* @param {number} week_num
|
||||
* @return {Promise<Array<any>>>}
|
||||
* @return {Promise<Array<any>>}
|
||||
*/
|
||||
async get_week_player_stats(week_num) {
|
||||
return this.get_request(`PlayerGameProjectionStatsByWeek/${this.configs.get('server.sports_data.season')}/${week_num}`, 'projections')
|
||||
|
||||
Reference in New Issue
Block a user