Comment all the things!
This commit is contained in:
@@ -47,15 +47,25 @@ const index = {
|
||||
'controller::Home.welcome'
|
||||
],
|
||||
|
||||
// Get information about the user's team
|
||||
'/my-team': ['controller::Teams.get_my_team'],
|
||||
|
||||
// Get a list of the user's team's players
|
||||
'/my-team/players': ['controller::Teams.get_my_team_players'],
|
||||
|
||||
// Get the uesr's team's current lineup
|
||||
'/my-team/lineup': ['controller::Teams.get_my_team_current_lineup'],
|
||||
|
||||
// Get a list of players available to be drafted
|
||||
'/draft-board/available': ['controller::DraftBoard.get_available_players'],
|
||||
|
||||
// Get a list of matchup, grouped by week number
|
||||
'/matchups': ['controller::Scores.get_weekly_scores'],
|
||||
|
||||
// Get the current league standings
|
||||
'/league-standings': ['controller::Scores.get_league_standings'],
|
||||
|
||||
// Get the status of the current user's session, and game play
|
||||
'/status': ['controller::Home.get_status'],
|
||||
},
|
||||
|
||||
@@ -67,9 +77,13 @@ const index = {
|
||||
* or middleware that are applied in order.
|
||||
*/
|
||||
post: {
|
||||
// Save changes to the current user's team
|
||||
'/my-team': ['controller::Teams.save_my_team'],
|
||||
|
||||
// Save the current user's team's lineup
|
||||
'/my-team/lineup': ['controller::Teams.save_my_team_lineup'],
|
||||
|
||||
// Draft the given player to the current user's team
|
||||
'/draft-board/draft-player': ['controller::DraftBoard.draft_player_to_team'],
|
||||
},
|
||||
|
||||
|
||||
@@ -13,6 +13,8 @@
|
||||
* You can omit the provider name to use the default provider:
|
||||
*
|
||||
* /auth/register
|
||||
*
|
||||
* This file was automatically generated by the Flitter framework.
|
||||
*/
|
||||
const index = {
|
||||
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
|
||||
/*
|
||||
* This file was automatically generated by the Flitter framework.
|
||||
*/
|
||||
module.exports = exports = {
|
||||
prefix: '/auth/action', // This is assumed by flitter-auth. Don't change it.
|
||||
middleware: [],
|
||||
|
||||
@@ -2,6 +2,8 @@
|
||||
* oauth2 Routes
|
||||
* -------------------------------------------------------------
|
||||
* Routes pertaining to the flitter-auth OAuth2 server implementation.
|
||||
*
|
||||
* This file was automatically generated by the Flitter framework.
|
||||
*/
|
||||
const oauth2 = {
|
||||
|
||||
|
||||
@@ -3,6 +3,8 @@
|
||||
* -------------------------------------------------------------
|
||||
* This is a sample routes file. Routes and their handlers should be
|
||||
* defined here, but no logic should occur.
|
||||
*
|
||||
* This file was automatically generated by the Flitter framework.
|
||||
*/
|
||||
const index = {
|
||||
|
||||
@@ -47,24 +49,7 @@ const index = {
|
||||
|
||||
// Placeholder for auth dashboard. You'd replace this with
|
||||
// your own route protected by 'middleware::auth:UserOnly'
|
||||
'/dash': [ 'controller::Home.welcome' ],
|
||||
|
||||
'/api/list-all-teams': [
|
||||
'controller::Teams.list_all_teams'
|
||||
],
|
||||
},
|
||||
|
||||
/*
|
||||
* Define POST routes.
|
||||
* These routes are registered as POST methods.
|
||||
* Handlers for these routes should be specified as
|
||||
* an array of canonical references to controller methods
|
||||
* or middleware that are applied in order.
|
||||
*/
|
||||
post: {
|
||||
'/api/create-team': [
|
||||
'controller::Teams.create_team'
|
||||
],
|
||||
'/dash': ['controller::Home.welcome'],
|
||||
},
|
||||
|
||||
// You can include other HTTP verbs here.
|
||||
|
||||
Reference in New Issue
Block a user