mirror of
https://github.com/euzu/tuliprox.git
synced 2026-10-24 00:32:30 +02:00
Added multiple server definition for api-proxy configuration
This commit is contained in:
@@ -14,7 +14,7 @@ export default interface ConfigApiService extends ApiService {
|
||||
|
||||
saveTargetUser(targetUser: TargetUser[]): Observable<any>;
|
||||
|
||||
saveApiProxyConfig(serverInfo: ApiProxyServerInfo): Observable<any>;
|
||||
saveApiProxyConfig(serverInfo: ApiProxyServerInfo[]): Observable<any>;
|
||||
}
|
||||
|
||||
export class DefaultConfigApiService extends DefaultApiService implements ConfigApiService {
|
||||
@@ -30,7 +30,7 @@ export class DefaultConfigApiService extends DefaultApiService implements Config
|
||||
return this.post<ServerConfig>(SERVER_CONFIG_TARGET_USER_API_PATH, targetUser);
|
||||
}
|
||||
|
||||
saveApiProxyConfig(serverInfo: ApiProxyServerInfo): Observable<any> {
|
||||
saveApiProxyConfig(serverInfo: ApiProxyServerInfo[]): Observable<any> {
|
||||
return this.post<ServerConfig>(SERVER_CONFIG_SERVER_INFO_API_PATH, serverInfo);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user