Skip to content

Commit

Permalink
chore(#197): ran prettier on packages/bruno-testbench
Browse files Browse the repository at this point in the history
  • Loading branch information
helloanoop committed Sep 21, 2023
1 parent 9a81793 commit bd07381
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions packages/bruno-testbench/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,40 +13,40 @@ app.use(cors());
app.use(xmlparser());
app.use(bodyParser.text());
app.use(bodyParser.json());
app.use(bodyParser.urlencoded({extended: true}));
app.use(bodyParser.urlencoded({ extended: true }));

app.get("/ping", function(req, res) {
return res.send("pong");
app.get('/ping', function (req, res) {
return res.send('pong');
});

app.get("/headers", function(req, res) {
app.get('/headers', function (req, res) {
return res.json(req.headers);
});

app.get("/query", function(req, res) {
app.get('/query', function (req, res) {
return res.json(req.query);
});

app.get("/echo/json", function(req, res) {
return res.json({ping: "pong"});
app.get('/echo/json', function (req, res) {
return res.json({ ping: 'pong' });
});

app.post("/echo/json", function(req, res) {
app.post('/echo/json', function (req, res) {
return res.json(req.body);
});

app.post("/echo/text", function(req, res) {
app.post('/echo/text', function (req, res) {
return res.send(req.body);
});

app.post("/echo/xml", function(req, res) {
app.post('/echo/xml', function (req, res) {
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);
});

app.listen(port, function() {
app.listen(port, function () {
console.log(`Testbench started on port: ${port}`);
});
});

0 comments on commit bd07381

Please sign in to comment.