diff --git a/src/api/sso.ts b/src/api/sso.ts index 93bce4b..ef12046 100644 --- a/src/api/sso.ts +++ b/src/api/sso.ts @@ -51,7 +51,7 @@ export const verifyOld = ({ username, password }): Promise => { }; export const verify = ({ username, password }): Promise => { - return fetch('/api/sso/verify', { + return fetch('/api/v1/bpms-workbench/sso/verify', { method: 'POST', headers: { 'Content-Type': 'application/json' @@ -63,10 +63,9 @@ export const verify = ({ username, password }): Promise => { }); }; - export const ssoCallBack = ({ ticket, redirectUrl }) => { const params = new URLSearchParams({ ticket, redirectUrl }); - return fetch(`/api/sso/callback?${params.toString()}`, { + return fetch(`/api/v1/bpms-workbench/sso/callback?${params.toString()}`, { method: 'GET', headers: { 'Content-Type': 'application/json' @@ -78,4 +77,4 @@ export const ssoCallBack = ({ ticket, redirectUrl }) => { } return data; }); -}; \ No newline at end of file +};