chore: updating backend to return title an description

Signed-off-by: blam <ben@blam.sh>
This commit is contained in:
blam
2022-03-11 18:16:01 +01:00
parent 44ddbab4cd
commit ad7381dc99
@@ -156,8 +156,10 @@ export async function createRouter(
const parameters = [template.spec.parameters ?? []].flat();
res.json({
title: template.metadata.title ?? template.metadata.name,
description: template.metadata.description,
steps: parameters.map(schema => ({
title: schema.title ?? 'Fill in template parameters',
title: schema.title ?? 'Please enter the following information',
description: schema.description,
schema,
})),
});