sp-rest-proxy
Version:
SharePoint REST API Proxy for Node.js and Express local serve
16 lines (15 loc) • 739 B
TypeScript
import * as express from 'express';
import { IProxySettings, IGatewayServerSettings, IGatewayClientSettings, IProxyCallback, IProxyErrorCallback } from './interfaces';
export default class RestProxy {
private app;
private settings;
private routers;
private logger;
private isExtApp;
constructor(settings?: IProxySettings, app?: express.Application);
serveProxy(callback?: IProxyCallback): void;
serveGateway: (settings: IGatewayServerSettings) => void;
serveClient: (settings: IGatewayClientSettings) => void;
serve(callback?: IProxyCallback, errorCallback?: IProxyErrorCallback): void;
}
export { IProxySettings, IProxyContext, IGatewayClientSettings, IGatewayServerSettings } from './interfaces';