mirror of
https://github.com/demostf/demoserver.git
synced 2026-06-03 22:04:06 +02:00
use the latest version of express
This commit is contained in:
parent
950a10a702
commit
ec7ac00e12
2 changed files with 3 additions and 3 deletions
|
|
@ -7,7 +7,7 @@
|
||||||
"test": "echo \"Error: no test specified\" && exit 1"
|
"test": "echo \"Error: no test specified\" && exit 1"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"express": "2.5.x"
|
"express": "~3.3.4"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": "0.8.x",
|
"node": "0.8.x",
|
||||||
|
|
|
||||||
4
web.js
4
web.js
|
|
@ -1,6 +1,6 @@
|
||||||
var express = require('express');
|
var express = require('express');
|
||||||
|
var app = express();
|
||||||
var app = express.createServer(express.logger());
|
app.use(express.logger());
|
||||||
|
|
||||||
app.get('/', function(request, response) {
|
app.get('/', function(request, response) {
|
||||||
response.send('Hello World!');
|
response.send('Hello World!');
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue