curlirize
This commit is contained in:
parent
d99427256e
commit
98471291c0
|
@ -37,7 +37,7 @@ const MAX_UPLOAD_FILESIZE = 1000 * 1024 * 1024
|
||||||
const SIAD_ENDPOINT = "http://localhost:9980"
|
const SIAD_ENDPOINT = "http://localhost:9980"
|
||||||
|
|
||||||
// simple siad connection with static strings
|
// simple siad connection with static strings
|
||||||
const siad = curlirize(axios.create({
|
const siad = axios.create({
|
||||||
baseURL: SIAD_ENDPOINT,
|
baseURL: SIAD_ENDPOINT,
|
||||||
headers: {
|
headers: {
|
||||||
"User-Agent": "Sia-Agent",
|
"User-Agent": "Sia-Agent",
|
||||||
|
@ -47,8 +47,9 @@ const siad = curlirize(axios.create({
|
||||||
username: "",
|
username: "",
|
||||||
password: fs.readFileSync(homedir().concat("/.sia/apipassword"), "utf8").trim()
|
password: fs.readFileSync(homedir().concat("/.sia/apipassword"), "utf8").trim()
|
||||||
}
|
}
|
||||||
}))
|
})
|
||||||
|
|
||||||
|
curlirize(siad);
|
||||||
|
|
||||||
// Ramda shared utility functions
|
// Ramda shared utility functions
|
||||||
const selectFile = R.path(["files", "file"])
|
const selectFile = R.path(["files", "file"])
|
||||||
|
|
Reference in New Issue