Skip to content

Commit d55cf97

Browse files
committed
fix empty options
1 parent e4862e9 commit d55cf97

File tree

6 files changed

+5
-7
lines changed

6 files changed

+5
-7
lines changed

.nyc_output/12463c7b3cb7653588295335ed141c91.json

Lines changed: 0 additions & 1 deletion
This file was deleted.

.nyc_output/5004958f404fc2c47507b536742a437a.json

Lines changed: 1 addition & 0 deletions
Large diffs are not rendered by default.

demo/server.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,8 @@ import * as express from "express";
22
import {JsonRoute} from "../src/json-route";
33
import {IRouteInfo} from "../src/interfaces/IRouteInfo";
44

5-
6-
75
let port: number = process.env.PORT || 3000;
8-
let app = express();
6+
let app: express.Application = express();
97

108

119
export let routeInfo: Array<IRouteInfo> = new JsonRoute(app, {
@@ -21,7 +19,7 @@ console.log("Total routes:", routeInfo.length);
2119
*
2220
* @type {http.Server}
2321
*/
24-
let server = app.listen(port, () => {
22+
let server = app.listen(port, () => {
2523
console.log("Listening on port %d", server.address().port);
2624
});
2725

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "json-routing",
33
"description": "JSON configurable MVC routing for express 4",
4-
"version": "2.0.0b2",
4+
"version": "2.0.0b3",
55
"author": "Giorgio Modoni <modogio@gmail.com>",
66
"homepage": "http://gimox.github.io/json-routing",
77
"main": "./build/json-route.js",

src/json-route.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export class JsonRoute {
1717
app: any;
1818
options: IOptions;
1919

20-
constructor(app: any, options: IOptions) {
20+
constructor(app, options: IOptions) {
2121
this.app = app;
2222
this.options = new Options().get(options);
2323
}

0 commit comments

Comments
 (0)