Skip to content

Commit

Permalink
chore: revert #2976
Browse files Browse the repository at this point in the history
  • Loading branch information
raymondfeng committed May 28, 2019
1 parent a809954 commit c949e85
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions packages/rest/src/router/external-express-routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {
SchemasObject,
} from '@loopback/openapi-v3-types';
import * as express from 'express';
import {RequestHandler, Application} from 'express';
import {RequestHandler} from 'express';
import {PathParams} from 'express-serve-static-core';
import * as HttpErrors from 'http-errors';
import * as onFinished from 'on-finished';
Expand Down Expand Up @@ -50,10 +50,7 @@ export class ExternalExpressRoutes {
rootDir: string,
options?: ServeStaticOptions,
) {
this._staticRoutes.use(path, express.static(
rootDir,
options,
) as Application);
this._staticRoutes.use(path, express.static(rootDir, options));
}

public mountRouter(
Expand Down

0 comments on commit c949e85

Please sign in to comment.