mirror of
https://github.com/Teamlinker/Teamlinker.git
synced 2025-06-03 03:00:17 +00:00
42 lines
1.1 KiB
TypeScript
42 lines
1.1 KiB
TypeScript
import {ECommon_Application_Mode, ECommon_Services} from "../types";
|
|
import {ECommon_HttpApi_Method} from "./types";
|
|
|
|
const api={
|
|
baseUrl:"/gateway",
|
|
service:ECommon_Services.GateWay,
|
|
routes:{
|
|
needConfig:{
|
|
method:ECommon_HttpApi_Method.GET,
|
|
path:"/needconfig",
|
|
req:<{
|
|
|
|
}>{},
|
|
res:<number>{},
|
|
ignoreValidate:true
|
|
},
|
|
editConfig:{
|
|
method:ECommon_HttpApi_Method.POST,
|
|
path:"/config",
|
|
req:<{
|
|
dbUrl:string,
|
|
dbPort?:number,
|
|
dbDatabase?:string,
|
|
dbUsername?:string,
|
|
dbPassword?:string
|
|
}>{},
|
|
res:{},
|
|
ignoreValidate:true
|
|
},
|
|
deployInfo:{
|
|
method:ECommon_HttpApi_Method.GET,
|
|
path:"/deploy",
|
|
req:{},
|
|
res:<{
|
|
type:ECommon_Application_Mode
|
|
}>{},
|
|
ignoreValidate:true
|
|
}
|
|
}
|
|
}
|
|
|
|
export default api |