修改wai-server API 路由: `/wai-server/v1`

dev/supplier-email-drawer
Lei OT 9 months ago
parent 65511e1036
commit ed1e7ce2a0

@ -9,7 +9,7 @@
// export const API_HOST = 'http://202.103.68.144:8889/v2';
// export const WS_URL = 'ws://202.103.68.144:8889';
// export const EMAIL_HOST = 'http://202.103.68.231:888/service-mail';
export const WAI_HOST = 'http://202.103.68.93:3031/api/v1/whatsapp';
export const WAI_HOST = 'http://202.103.68.93:3031/wai-server/v1';
export const EMAIL_ATTA_HOST = 'https://p9axztuwd7x8a7.mycht.cn/attatchment'; // 邮件附件
// prod:
export const EMAIL_HOST = 'https://p9axztuwd7x8a7.mycht.cn/mail-server/service-mail';

@ -9,7 +9,7 @@ const baseName = path.basename(__filename);
function applyApiMiddleware(app) {
const router = new Router({
prefix: `/api/${apiVersion}/whatsapp`,
prefix: `/wai-server/${apiVersion}`,
});
// Require all the folders and create a sub-router for each feature api

Loading…
Cancel
Save