utility-function-extractor/lib/pushToMongo.js
NunoSempere 3f0b918725 fix: Point app to personal server...
rather than to unreliable heroku server.
2021-12-10 00:33:04 +01:00

14 lines
322 B
JavaScript

import axios from "axios"
const CONNECTION_IS_ACTIVE = true
export async function pushToMongo(data){
if(CONNECTION_IS_ACTIVE){
let response = await axios.post('https://server.loki.red/utility-function-extractor', {
data: data
})
console.log(response)
}
}
// pushToMongo()