fix #1197 - move folder path logic from Client Service to Server Controller
This commit is contained in:
		| @ -35,13 +35,7 @@ namespace Oqtane.Services | ||||
|  | ||||
|         public async Task<Folder> GetFolderAsync(int siteId, [NotNull] string folderPath) | ||||
|         { | ||||
|             if (!(folderPath.EndsWith(System.IO.Path.DirectorySeparatorChar) || folderPath.EndsWith(System.IO.Path.AltDirectorySeparatorChar))) | ||||
|             { | ||||
|                 folderPath = Utilities.PathCombine(folderPath, System.IO.Path.DirectorySeparatorChar.ToString()); | ||||
|             } | ||||
|  | ||||
|             var path = WebUtility.UrlEncode(folderPath); | ||||
|  | ||||
|             return await GetJsonAsync<Folder>($"{ApiUrl}/{siteId}/{path}"); | ||||
|         } | ||||
|  | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 Shaun Walker
					Shaun Walker