feat(ClubTeam): enhance club team management with lineup features and member eligibility
- Added teamGender and teamAgeGroup fields to ClubTeam model for better categorization. - Updated create and update club team endpoints to handle new fields and default values. - Implemented getClubTeamLineup and updateClubTeamLineup functions for managing team lineups. - Enhanced member management with adultReleaseApproved and adultReserveApproved fields in Member model. - Updated frontend views to support new lineup features and member eligibility flags. - Improved localization for new terms related to team management and member eligibility across multiple languages.
This commit is contained in:
@@ -6,7 +6,9 @@ import {
|
||||
createClubTeam,
|
||||
updateClubTeam,
|
||||
deleteClubTeam,
|
||||
getLeagues
|
||||
getLeagues,
|
||||
getClubTeamLineup,
|
||||
updateClubTeamLineup
|
||||
} from '../controllers/clubTeamController.js';
|
||||
|
||||
const router = express.Router();
|
||||
@@ -23,6 +25,10 @@ router.get('/leagues/:clubid', authenticate, getLeagues);
|
||||
// Get a specific club team
|
||||
router.get('/:clubteamid', authenticate, getClubTeam);
|
||||
|
||||
// Get/save lineup for a specific club team
|
||||
router.get('/:clubteamid/lineup', authenticate, getClubTeamLineup);
|
||||
router.put('/:clubteamid/lineup', authenticate, updateClubTeamLineup);
|
||||
|
||||
// Update a club team
|
||||
router.put('/:clubteamid', authenticate, updateClubTeam);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user