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

Commit 0c2d361

Browse files
committed
Restore /feed to be as it used to be and put new feed under /featured
1 parent 89595f3 commit 0c2d361

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ const app = express()
298298
app.use(express.json())
299299
app.use(cors({ origin: '*' }))
300300

301-
app.post('/feed', async (req, res) => {
301+
app.post('/featured', async (req, res) => {
302302
/*
303303
var counter = req.query.counter
304304
var max_time = req.query.hasOwnProperty('time') ? customFloor(req.query.time, ONE_MINUTE_MILLIS) : null
@@ -310,7 +310,7 @@ app.post('/feed', async (req, res) => {
310310
await getFeed(req.body.counter, res, true)
311311
})
312312

313-
app.post('/all', async (req, res) => {
313+
app.post('/feed', async (req, res) => {
314314
/*
315315
var counter = req.query.counter
316316
var max_time = req.query.hasOwnProperty('time') ? customFloor(req.query.time, ONE_MINUTE_MILLIS) : null

0 commit comments

Comments
 (0)