make module creator templates extensible
This commit is contained in:
@ -13,5 +13,6 @@ namespace Oqtane.Services
|
||||
Task InstallModuleDefinitionsAsync();
|
||||
Task DeleteModuleDefinitionAsync(int moduleDefinitionId, int siteId);
|
||||
Task<ModuleDefinition> CreateModuleDefinitionAsync(ModuleDefinition moduleDefinition);
|
||||
Task<List<string>> GetModuleDefinitionTemplatesAsync();
|
||||
}
|
||||
}
|
||||
|
@ -53,5 +53,11 @@ namespace Oqtane.Services
|
||||
{
|
||||
return await PostJsonAsync($"{Apiurl}", moduleDefinition);
|
||||
}
|
||||
|
||||
public async Task<List<string>> GetModuleDefinitionTemplatesAsync()
|
||||
{
|
||||
List<string> templates = await GetJsonAsync<List<string>>($"{Apiurl}/templates");
|
||||
return templates;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user