Add logic for saving draft picks to team and fetching draft & team from server for frontend

This commit is contained in:
2020-11-05 21:53:35 -06:00
parent fc5b90a938
commit a207cd0a11
6 changed files with 102 additions and 4 deletions

View File

@@ -50,6 +50,8 @@ const index = {
'/my-team': ['controller::Teams.get_my_team'],
'/my-team/players': ['controller::Teams.get_my_team_players'],
'/my-team/lineup': ['controller::Teams.get_my_team_current_lineup'],
'/draft-board/available': ['controller::DraftBoard.get_available_players'],
},
/*
@@ -62,6 +64,8 @@ const index = {
post: {
'/my-team': ['controller::Teams.save_my_team'],
'/my-team/lineup': ['controller::Teams.save_my_team_lineup'],
'/draft-board/draft-player': ['controller::DraftBoard.draft_player_to_team'],
},
// You can include other HTTP verbs here.