resolve #3189 - make path a querystring parameter

This commit is contained in:
sbwalker
2023-08-25 09:49:07 -04:00
parent 4de809e275
commit 95de1fff69
3 changed files with 5 additions and 4 deletions

View File

@ -29,7 +29,7 @@ namespace Oqtane.Services
public async Task<Folder> GetFolderAsync(int siteId, [NotNull] string folderPath)
{
var path = WebUtility.UrlEncode(folderPath);
return await GetJsonAsync<Folder>($"{ApiUrl}/{siteId}/{path}");
return await GetJsonAsync<Folder>($"{ApiUrl}/path/{siteId}/?path={path}");
}
public async Task<Folder> AddFolderAsync(Folder folder)