Skip to content

Instantly share code, notes, and snippets.

@mwitz8
mwitz8 / endpoint.js
Created January 19, 2021 17:53
API Call for Sample Data
app.get('/api/products', (req, res) => {
database.readAllProducts((results) => {
res.send(results);
});
})
/\ |‾‾| /‾‾/ /‾‾/
/\ / \ | |/ / / /
/ \/ \ | ( / ‾‾\
/ \ | |\ \ | (‾) |
/ __________ \ |__| \__\ \_____/ .io
execution: local
script: k6test.js
output: -