mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2026-09-25 00:00:53 +00:00
feat: core 增加 xpack 节点管理
This commit is contained in:
@@ -2,29 +2,29 @@ import { Login } from '@/api/interface/auth';
|
||||
import http from '@/api';
|
||||
|
||||
export const loginApi = (params: Login.ReqLoginForm) => {
|
||||
return http.post<Login.ResLogin>(`/auth/login`, params);
|
||||
return http.post<Login.ResLogin>(`/core/auth/login`, params);
|
||||
};
|
||||
|
||||
export const mfaLoginApi = (params: Login.MFALoginForm) => {
|
||||
return http.post<Login.ResLogin>(`/auth/mfalogin`, params);
|
||||
return http.post<Login.ResLogin>(`/core/auth/mfalogin`, params);
|
||||
};
|
||||
|
||||
export const getCaptcha = () => {
|
||||
return http.get<Login.ResCaptcha>(`/auth/captcha`);
|
||||
return http.get<Login.ResCaptcha>(`/core/auth/captcha`);
|
||||
};
|
||||
|
||||
export const logOutApi = () => {
|
||||
return http.post<any>(`/auth/logout`);
|
||||
return http.post<any>(`/core/auth/logout`);
|
||||
};
|
||||
|
||||
export const checkIsSafety = (code: string) => {
|
||||
return http.get<string>(`/auth/issafety?code=${code}`);
|
||||
return http.get<string>(`/core/auth/issafety?code=${code}`);
|
||||
};
|
||||
|
||||
export const checkIsDemo = () => {
|
||||
return http.get<boolean>('/auth/demo');
|
||||
return http.get<boolean>('/core/auth/demo');
|
||||
};
|
||||
|
||||
export const getLanguage = () => {
|
||||
return http.get<string>(`/auth/language`);
|
||||
return http.get<string>(`/core/auth/language`);
|
||||
};
|
||||
|
||||
@@ -26,7 +26,7 @@ export const unbindLicense = () => {
|
||||
};
|
||||
|
||||
export const getSettingInfo = () => {
|
||||
return http.post<Setting.SettingInfo>(`/settings/search`);
|
||||
return http.post<Setting.SettingInfo>(`/core/settings/search`);
|
||||
};
|
||||
export const getSystemAvailable = () => {
|
||||
return http.get(`/settings/search/available`);
|
||||
|
||||
Reference in New Issue
Block a user