🔩 Light refactoring

This commit is contained in:
2021-04-27 14:43:57 -07:00
parent a4715efe04
commit 2013d37b45
4 changed files with 12 additions and 17 deletions

View File

@@ -10,7 +10,11 @@ import { FS_API_BASE_URI } from "../constants/endpoints";
export async function walkFolder(path: string): Promise<Array<IFolderData>> {
return axios
.request<Array<IFolderData>>({
url: FS_API_BASE_URI + "/walkFolder",
url: FS_API_BASE_URI + "walkFolder",
method: "POST",
params: {
basePathToWalk: path,
},
transformResponse: (r: string) => JSON.parse(r),
})
.then((response) => {