improve module export so that content can be saved to a file
This commit is contained in:
@ -47,8 +47,13 @@ namespace Oqtane.Services
|
||||
}
|
||||
|
||||
public async Task<string> ExportModuleAsync(int moduleId, int pageId)
|
||||
{
|
||||
{
|
||||
return await GetStringAsync($"{Apiurl}/export?moduleid={moduleId}&pageid={pageId}");
|
||||
}
|
||||
|
||||
public async Task<Result> ExportModuleAsync(int moduleId, int pageId, int folderId)
|
||||
{
|
||||
return await PostJsonAsync<Result>($"{Apiurl}/export?moduleid={moduleId}&pageid={pageId}&folderid={folderId}", null);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user