Commit 700d2fdd authored by Deni Rinaldi's avatar Deni Rinaldi

ganti api

parent ae8ec620
......@@ -3,7 +3,7 @@ import apisauce from 'apisauce'
import Constant from '../library/Constant'
// our "constructor"
const create = (baseURL = 'https://trftia.eksad.com/tia-reporting-dev/public/') => {
const create = (baseURL = 'https://tia.eksad.com/tia-reporting-dev/public/') => {
// ------
// STEP 1
// ------
......
......@@ -236,7 +236,7 @@ export default class UnitBisnis extends Component {
downloadFile = async () => {
let res = await fetch(
"https://trftia.eksad.com/tia-reporting-dev/public/attachment/download_file?fileName=BusinessUnitTemplate&&fileType=xlsx"
"https://tia.eksad.com/tia-reporting-dev/public/attachment/download_file?fileName=BusinessUnitTemplate&&fileType=xlsx"
)
res = await res.blob()
console.log(res)
......@@ -251,7 +251,7 @@ export default class UnitBisnis extends Component {
downloadDataTable = async () => {
let res = await fetch(
"https://trftia.eksad.com/tia-reporting-dev/public/business_unit/export_business_unit"
"https://tia.eksad.com/tia-reporting-dev/public/business_unit/export_business_unit"
)
res = await res.blob()
console.log(res)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment