improve module export so that content can be saved to a file

This commit is contained in:
sbwalker
2025-05-15 08:56:21 -04:00
parent f3fcef52dd
commit a49b8728fd
6 changed files with 164 additions and 14 deletions

View File

@ -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);
}
}
}