badmfck-api-server 1.3.1 → 1.3.2
Sign up to get free protection for your applications and to get access to all the features.
@@ -10,7 +10,7 @@ export interface IEndpointHandler {
|
|
10
10
|
handler: (req: HTTPRequestVO) => Promise<TransferPacketVO<any>>;
|
11
11
|
ignoreInterceptor?: boolean;
|
12
12
|
}
|
13
|
-
export declare class BaseEndpoint implements IBaseEndpoint {
|
13
|
+
export declare class BaseEndpoint<T> implements IBaseEndpoint {
|
14
14
|
endpoints?: IEndpointHandler[];
|
15
15
|
ignoreHttpLogging: boolean;
|
16
16
|
private static entrypoint;
|
@@ -20,5 +20,5 @@ export declare class BaseEndpoint implements IBaseEndpoint {
|
|
20
20
|
constructor(endpoint: string);
|
21
21
|
registerEndpoints(endpoints: IEndpointHandler[]): void;
|
22
22
|
init(): Promise<void>;
|
23
|
-
execute(req: HTTPRequestVO): Promise<TransferPacketVO<
|
23
|
+
execute(req: HTTPRequestVO): Promise<TransferPacketVO<T>>;
|
24
24
|
}
|
@@ -44,7 +44,7 @@ class BaseEndpoint {
|
|
44
44
|
return;
|
45
45
|
}
|
46
46
|
for (let i of this.endpoints)
|
47
|
-
console.log("endpoint: " + i.endpoint + " initalized");
|
47
|
+
console.log("endpoint: " + i.endpoint + " initalized, ignoreInterceptor: " + (i.ignoreInterceptor ?? "false"));
|
48
48
|
}
|
49
49
|
;
|
50
50
|
async execute(req) {
|