Skip to content

Commit 997706f

Browse files
committed
Render archived teams in the static API
1 parent bb1838f commit 997706f

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/static_api.rs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,17 @@ impl<'a> Generator<'a> {
168168
self.add(&format!("v1/teams/{name}.json"), team)?;
169169
}
170170
self.add("v1/teams.json", &v1::Teams { teams })?;
171+
172+
let archived_teams = convert_teams(&self.data, self.data.archived_teams())?;
173+
for (name, team) in &archived_teams {
174+
self.add(&format!("v1/archived-teams/{name}.json"), team)?;
175+
}
176+
self.add(
177+
"v1/archived-teams.json",
178+
&v1::Teams {
179+
teams: archived_teams,
180+
},
181+
)?;
171182
Ok(())
172183
}
173184

0 commit comments

Comments
 (0)