small add (#795)
Co-authored-by: Geometrically <18202329+Geometrically@users.noreply.github.com>
This commit is contained in:
parent
f53b6b550f
commit
f5b8c15388
@ -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))
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user