# 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;