Files
DefinitelyTyped/types/express-xml-bodyparser/express-xml-bodyparser-tests.ts

11 lines
261 B
TypeScript

import express = require('express');
import xmlparser = require('express-xml-bodyparser');
const app: express.Express = express();
app.use(xmlparser());
app.post("/auth", xmlparser({explicitArray: false}), (req, res, next) => {
res.send("Success!");
});