chore(#197): ran prettier on packages/bruno-testbench

This commit is contained in:
Anoop M D 2023-09-22 00:44:47 +05:30
parent 9a81793151
commit bd0738198c

View File

@ -13,40 +13,40 @@ app.use(cors());
app.use(xmlparser()); app.use(xmlparser());
app.use(bodyParser.text()); app.use(bodyParser.text());
app.use(bodyParser.json()); app.use(bodyParser.json());
app.use(bodyParser.urlencoded({extended: true})); app.use(bodyParser.urlencoded({ extended: true }));
app.get("/ping", function(req, res) { app.get('/ping', function (req, res) {
return res.send("pong"); return res.send('pong');
}); });
app.get("/headers", function(req, res) { app.get('/headers', function (req, res) {
return res.json(req.headers); return res.json(req.headers);
}); });
app.get("/query", function(req, res) { app.get('/query', function (req, res) {
return res.json(req.query); return res.json(req.query);
}); });
app.get("/echo/json", function(req, res) { app.get('/echo/json', function (req, res) {
return res.json({ping: "pong"}); return res.json({ ping: 'pong' });
}); });
app.post("/echo/json", function(req, res) { app.post('/echo/json', function (req, res) {
return res.json(req.body); return res.json(req.body);
}); });
app.post("/echo/text", function(req, res) { app.post('/echo/text', function (req, res) {
return res.send(req.body); return res.send(req.body);
}); });
app.post("/echo/xml", function(req, res) { app.post('/echo/xml', function (req, res) {
return res.send(req.body); return res.send(req.body);
}); });
app.post("/echo/multipartForm", upload.none(), function(req, res) { app.post('/echo/multipartForm', upload.none(), function (req, res) {
return res.json(req.body); return res.json(req.body);
}); });
app.listen(port, function() { app.listen(port, function () {
console.log(`Testbench started on port: ${port}`); console.log(`Testbench started on port: ${port}`);
}); });