added metadata support for Module and Theme templates
This commit is contained in:
@ -13,6 +13,6 @@ namespace Oqtane.Services
|
||||
Task InstallModuleDefinitionsAsync();
|
||||
Task DeleteModuleDefinitionAsync(int moduleDefinitionId, int siteId);
|
||||
Task<ModuleDefinition> CreateModuleDefinitionAsync(ModuleDefinition moduleDefinition);
|
||||
Task<List<string>> GetModuleDefinitionTemplatesAsync();
|
||||
Task<List<Template>> GetModuleDefinitionTemplatesAsync();
|
||||
}
|
||||
}
|
||||
|
@ -13,6 +13,6 @@ namespace Oqtane.Services
|
||||
Task InstallThemesAsync();
|
||||
Task DeleteThemeAsync(string themeName);
|
||||
Task<Theme> CreateThemeAsync(Theme theme);
|
||||
Task<List<string>> GetThemeTemplatesAsync();
|
||||
Task<List<Template>> GetThemeTemplatesAsync();
|
||||
}
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
@ -58,9 +58,9 @@ namespace Oqtane.Services
|
||||
return await PostJsonAsync($"{ApiUrl}", theme);
|
||||
}
|
||||
|
||||
public async Task<List<string>> GetThemeTemplatesAsync()
|
||||
public async Task<List<Template>> GetThemeTemplatesAsync()
|
||||
{
|
||||
List<string> templates = await GetJsonAsync<List<string>>($"{ApiUrl}/templates");
|
||||
List<Template> templates = await GetJsonAsync<List<Template>>($"{ApiUrl}/templates");
|
||||
return templates;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user