mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-21 05:20:24 +08:00
17 lines
247 B
TypeScript
17 lines
247 B
TypeScript
/**
|
|
* Created by karl on 14/07/15.
|
|
*/
|
|
|
|
|
|
|
|
|
|
import express = require('express');
|
|
import xHeaders = require('easy-x-headers');
|
|
|
|
var app = express();
|
|
app.use(xHeaders.getMiddleware());
|
|
|
|
app.get('/', function (req, res) {
|
|
res.json(req.info);
|
|
});
|