repldex / Repldex

https://repldex.com
MIT License
21 stars 11 forks source link

[API] Add random entry endpoint for api #194

Closed stjet closed 2 years ago

stjet commented 2 years ago

The random endpoint could use some improvements as you are just choosing a random number with Math.random() and making it go through all entries and select just one entry. Maybe make it collect only one random entry from the database to improve speeds and take less requests.

should be fixed