1
0
mirror of https://github.com/sasjs/server.git synced 2026-01-05 22:00:05 +00:00

fix: update api calls from client side

This commit is contained in:
2021-11-01 15:25:43 +00:00
parent 0c6ccddafd
commit 031e492d44
3 changed files with 5 additions and 5 deletions

View File

@@ -22,7 +22,7 @@ const Main = (props: any) => {
if (props.selectedFilePath) {
setIsLoading(true)
axios
.get(`/SASjsApi/files?filePath=${props.selectedFilePath}`)
.get(`/SASjsApi/drive/file?filePath=${props.selectedFilePath}`)
.then((res: any) => {
setFileContent(res.data.fileContent)
})
@@ -42,7 +42,7 @@ const Main = (props: any) => {
} else {
setIsLoading(true)
axios
.post(`/SASjsApi/files`, {
.patch(`/SASjsApi/drive/file`, {
filePath: props.selectedFilePath,
fileContent: fileContent
})

View File

@@ -51,7 +51,7 @@ const SideBar = (props: any) => {
useEffect(() => {
axios
.get(`/SASjsApi/executor`)
.get(`/SASjsApi/drive/fileTree`)
.then((res: any) => {
if (res.data && res.data?.status === 'success') {
setDirectoryData(res.data.tree)