Skip to content
This repository was archived by the owner on Nov 10, 2021. It is now read-only.

Commit 8eef538

Browse files
authored
Merge pull request #38 from hicetnunc2000/cache_rec_curate
Speed up curate using 5 min cache
2 parents 2f08dde + 46f1274 commit 8eef538

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -298,6 +298,7 @@ app.post('/objkt', async (req, res) => {
298298

299299
app.get('/recommend_curate', async (req, res) => {
300300
const amt = await conseilUtil.getRecommendedCurateDefault()
301+
res.set('Cache-Control', `public, max-age=300`)
301302
res.json({ amount: amt })
302303
})
303304

0 commit comments

Comments
 (0)