Skip to content

Instantly share code, notes, and snippets.

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