From f5b8c15388e3658b8113e320d75ce16b0defaff1 Mon Sep 17 00:00:00 2001 From: Wyatt Verchere Date: Tue, 12 Dec 2023 19:20:09 -0800 Subject: [PATCH] small add (#795) Co-authored-by: Geometrically <18202329+Geometrically@users.noreply.github.com> --- src/routes/v2/tags.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/routes/v2/tags.rs b/src/routes/v2/tags.rs index 00ba0726..b711d54b 100644 --- a/src/routes/v2/tags.rs +++ b/src/routes/v2/tags.rs @@ -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::>(); Ok(HttpResponse::Ok().json(loaders))