mirror of
https://github.com/usebruno/bruno.git
synced 2024-11-21 23:43:15 +01:00
chore(#197): ran prettier on packages/bruno-testbench
This commit is contained in:
parent
9a81793151
commit
bd0738198c
@ -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}`);
|
||||
});
|
Loading…
Reference in New Issue
Block a user