
export const baseURL = 'https://api.fukuro.coop.moe'

export function getCall(url, callback) {
  const xhr = new XMLHttpRequest()
  xhr.onreadystatechange = function() {
    callback(xhr)
  }
  xhr.respenseType = 'json'
  xhr.open('GET', url, true)
  xhr.send()
}


export function postCall(url, param, callback) {
  const xhr = new XMLHttpRequest()
  xhr.onreadystatechange = function() {
    callback(xhr)
  }
  xhr.open('POST', url, true)
  xhr.setRequestHeader('Content-Type', 'application/json')
  xhr.send(JSON.stringify(param))
}


export const baseURL = 'https://moecoop.arukascloud.io'

export function getCall(url, callback) {
  const xhr = new XMLHttpRequest()
  xhr.onreadystatechange = function() {
    callback(xhr)
  }
  xhr.respenseType = 'json'
  xhr.open('GET', url, true)
  xhr.send()
}


export function postCall(url, param, callback) {
  const xhr = new XMLHttpRequest()
  xhr.onreadystatechange = function() {
    callback(xhr)
  }
  xhr.open('POST', url, true)
  xhr.setRequestHeader('Content-Type', 'application/json')
  xhr.send(JSON.stringify(param))
}

Revert "REST API の base URL を api.fukuro.coop.moe に修正"
Revert "REST API の base URL を api.fukuro.coop.moe に修正"

This reverts commit fbfdb69892830c51b1a058ac44a217cbeaa14a39.
