chore: set new env

This commit is contained in:
2022-11-18 11:15:16 +07:00
parent 3f896d3824
commit c98e72d8d9
6 changed files with 90 additions and 13 deletions

View File

@@ -1,4 +1,4 @@
import {http} from "../utils/http";
import { http2 } from "../utils/http2"
const url = {
contacts: () => '/product/api/v5/customer-service'
@@ -8,7 +8,7 @@ const hooks = {}
const api = {
async getContacts() {
return await http.fetcher(url.contacts())
return await http2.fetcher(url.contacts())
},
}

View File

@@ -1,16 +1,13 @@
import {http} from "../utils/http";
const url = {
payment: () => '/usermanagement/api/v5/validate/check-phone-register'
payment: () => '/usermanagement/api/v5/validate/check-phone-register',
sendInvoice: () => '/payment-service/api/v6/send-invoice',
}
const hooks = {}
const api = {
// async usePayment(data) {
// return await http.post(url.payment, data)
// },
}
const api = {}
export const orderRepository = {
url,