Skip to content

Instantly share code, notes, and snippets.

/\ |‾‾| /‾‾/ /‾‾/
/\ / \ | |/ / / /
/ \/ \ | ( / ‾‾\
/ \ | |\ \ | (‾) |
/ __________ \ |__| \__\ \_____/ .io
execution: local
script: k6test.js
output: -
@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);
});
})