Skip to content

Commit

Permalink
Fix deprecation warning.
Browse files Browse the repository at this point in the history
  • Loading branch information
tvandort committed Feb 4, 2018
1 parent 47d4088 commit 5a094b8
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 13 deletions.
16 changes: 8 additions & 8 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 6 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
"license": "MIT",
"watch": {
"start": {
"patterns": ["src"],
"patterns": [
"src"
],
"extensions": "ts"
}
},
Expand All @@ -18,13 +20,14 @@
"start:w": "npm-watch"
},
"dependencies": {
"body-parser": "^1.18.2",
"express": "^4.16.2",
"express-validator": "^4.3.0",
"node-lifx-lan": "^0.0.1"
},
"devDependencies": {
"@types/node": "^9.3.0",
"@types/node": "^9.4.0",
"npm-watch": "^0.3.0",
"typescript": "^2.6.2"
"typescript": "^2.7.1"
}
}
5 changes: 3 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
import * as express from "express";
import { json, urlencoded } from "body-parser";
import { check, validationResult } from "express-validator/check";
import Lights from "./lights";

const port = process.env.PORT || 3000;
const app = express();

app.use(express.json());
app.use(express.urlencoded());
app.use(json());
app.use(urlencoded());

app.use("/lights", Lights);

Expand Down

0 comments on commit 5a094b8

Please sign in to comment.