Skip to content
This repository has been archived by the owner on Oct 19, 2024. It is now read-only.

Commit

Permalink
small add (#795)
Browse files Browse the repository at this point in the history
Co-authored-by: Geometrically <[email protected]>
  • Loading branch information
thesuzerain and Geometrically authored Dec 13, 2023
1 parent f53b6b5 commit f5b8c15
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/routes/v2/tags.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,9 @@ pub async fn loader_list(
.map(|l| LoaderData {
icon: l.icon,
name: l.name,
supported_project_types: l.supported_project_types,
// Add generic 'project' type to all loaders, which is the v2 representation of
// a project type before any versions are set.
supported_project_types: l.supported_project_types.into_iter().chain(std::iter::once("project".to_string())).collect(),
})
.collect::<Vec<_>>();
Ok(HttpResponse::Ok().json(loaders))
Expand Down

0 comments on commit f5b8c15

Please sign in to comment.