added metadata support for Module and Theme templates

This commit is contained in:
Shaun Walker
2021-05-31 11:59:19 -04:00
parent 276817c89d
commit ddd657bfa7
12 changed files with 136 additions and 61 deletions

View File

@ -56,9 +56,9 @@ namespace Oqtane.Services
return await PostJsonAsync($"{Apiurl}", moduleDefinition);
}
public async Task<List<string>> GetModuleDefinitionTemplatesAsync()
public async Task<List<Template>> GetModuleDefinitionTemplatesAsync()
{
List<string> templates = await GetJsonAsync<List<string>>($"{Apiurl}/templates");
List<Template> templates = await GetJsonAsync<List<Template>>($"{Apiurl}/templates");
return templates;
}
}