Skip to content

Commit 956c69c

Browse files
authored
Merge pull request #21 from tendermint/daria/workshops
add Get /workshops
2 parents 394fca3 + 562983d commit 956c69c

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,10 @@ npm run start
8484

8585
**200**: Returns a list of CwU
8686

87+
### GET `/workshops`
88+
89+
**200**: Returns a list of Workshops
90+
8791
### GET `/coingecko-cosmos-marketcap`
8892

8993
**200**: Returns the value of total market cap of Cosmos projects using Coingecko API

src/index.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,20 @@ app.get("/cwu", async (req, res) => {
229229
});
230230
});
231231

232+
app.get("/workshops", async (req, res) => {
233+
const airtable = new Airtable({ apiKey: AIRTABLE_API_KEY })
234+
.base("appyPXo0kRzyqRPJk")
235+
.table("workshops");
236+
237+
airtable
238+
.list({
239+
maxRecords: 1000,
240+
})
241+
.then((response) => {
242+
res.send(response);
243+
});
244+
});
245+
232246
app.get("/coingecko-cosmos-marketcap", cache.serve(30), async (req, res) => {
233247
const data = [
234248
"cosmos",

0 commit comments

Comments
 (0)