We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
json!
1 parent b2f005b commit b9006b6Copy full SHA for b9006b6
src/controllers/team.rs
@@ -12,5 +12,5 @@ pub fn show_team(req: &mut dyn RequestExt) -> EndpointResult {
12
let conn = req.db_read_only()?;
13
let team: Team = teams.filter(login.eq(name)).first(&*conn)?;
14
15
- Ok(req.json(&json!({ team: EncodableTeam::from(team) })))
+ Ok(req.json(&json!({ "team": EncodableTeam::from(team) })))
16
}
0 commit comments