# PlatformRouter Class platform
Module | import { PlatformRouter } from "@tsed/common" |
---|---|
Source | /packages/common/src/platform/services/PlatformRouter.ts |
# Overview
class PlatformRouter extends PlatformDriver<TsED.Router> {
constructor(platform: PlatformHandler);
/**
* Create a new instance of PlatformRouter
* @param injector
* @param routerOptions
*/
static create(injector: InjectorService, routerOptions: any): PlatformRouter;
protected static createRawRouter(): any;
}
# Description
Platform Router abstraction layer.
# Members
static create(injector: InjectorService, routerOptions: any): PlatformRouter;
Create a new instance of PlatformRouter
protected static createRawRouter(): any;
- Session & cookies
- Passport.js
- TypeORM
- Mongoose
- GraphQL
- Socket.io
- Swagger
- AJV
- Multer
- Serve static files
- Templating
- Throw HTTP Exceptions
- Customize 404
- AWS
- Jest
- Seq
- Controllers
- Providers
- Model
- Converters
- Middlewares
- Pipes
- Interceptors
- Authentication
- Hooks
- Injection scopes
- Custom providers
- Custom endpoint decorator
- Testing