small add (#795)

Co-authored-by: Geometrically <18202329+Geometrically@users.noreply.github.com>
This commit is contained in:
Wyatt Verchere 2023-12-12 19:20:09 -08:00 committed by GitHub
parent f53b6b550f
commit f5b8c15388
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -66,7 +66,9 @@ pub async fn loader_list(
.map(|l| LoaderData { .map(|l| LoaderData {
icon: l.icon, icon: l.icon,
name: l.name, 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<_>>(); .collect::<Vec<_>>();
Ok(HttpResponse::Ok().json(loaders)) Ok(HttpResponse::Ok().json(loaders))