# Class PlatformApplication
Class platformModule | import { PlatformApplication } from "@tsed/common" |
---|---|
Source | /packages/platform/common/src/types/services/PlatformApplication.ts |
# Overview
class PlatformApplication<App = TsED.Application> extends PlatformRouter {
adapter: PlatformAdapter<App>;
injector: InjectorService;
rawApp: App;
rawCallback: () => any;
constructor(adapter: PlatformAdapter<App>, injector: InjectorService);
getApp(): App;
multer(options: PlatformMulterSettings): import("multer").Multer;
callback(): (req: IncomingMessage, res: ServerResponse) => any;
callback(req: IncomingMessage, res: ServerResponse): any;
}
# Description
PlatformApplication
is used to provide all routes collected by annotation @Controller
.
# Members
adapter: PlatformAdapter<App>;
injector: InjectorService;
rawApp: App;
rawCallback: () => any;
getApp(): App;
multer(options: PlatformMulterSettings): import("multer").Multer;
callback(): (req: IncomingMessage, res: ServerResponse) => any;
callback(req: IncomingMessage, res: ServerResponse): any;