We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c88705a commit bbcd11dCopy full SHA for bbcd11d
src/routes/team_routes.rs
@@ -117,7 +117,7 @@ async fn get_teams(
117
}
118
119
let tournament = Tournament::get_by_id(tournament_id, pool).await?;
120
- match tournament.get_debates(pool).await
+ match tournament.get_teams(pool).await
121
{
122
Ok(teams) => Ok(Json(teams).into_response()),
123
Err(e) => {
src/routes/tournament_routes.rs
@@ -26,6 +26,7 @@ pub fn route() -> Router<AppState> {
26
///
27
/// This request only returns the tournaments the user is permitted to see.
28
/// The user must be given any role within a tournament to see it.
29
+/// The infrastructure admin can see all tournaments
30
#[utoipa::path(get, path = "/tournament",
31
responses(
32
(
0 commit comments