This allows for `@requires_team_membership()` to be able to retrieve the team_id from a JSON or query parameter.
The team routes have been split into separate blueprints for better modularity and maintainability. The team invite and team integration routes are now handled by their respective blueprints.