forked from kaverti/website
asdaasdad
This commit is contained in:
parent
0e4f94efac
commit
6d3ae42a95
|
@ -17,7 +17,7 @@ const likeLimiter = rateLimit({
|
|||
message: "{\"errors\":[{\"name\":\"rateLimit\",\"message\":\"You may only make 25 requests to this endpoint per minute.\",\"status\":429}]}"
|
||||
});
|
||||
|
||||
router.get('/:post_id', auth, async(req, res, next) => {
|
||||
router.get('/:post_id', async(req, res, next) => {
|
||||
try {
|
||||
let post = await Post.findById(req.params.post_id, { include: Post.includeOptions() })
|
||||
if(!post) throw Errors.sequelizeValidation(Sequelize, {
|
||||
|
|
|
@ -11,7 +11,7 @@ const postLimiter = rateLimit({
|
|||
max: 10,
|
||||
message: "{\"errors\":[{\"name\":\"rateLimit\",\"message\":\"You may only make 10 requests to this endpoint per minute.\",\"status\":429}]}"
|
||||
});
|
||||
router.get('/:thread_id', auth, async(req, res, next) => {
|
||||
router.get('/:thread_id', async(req, res, next) => {
|
||||
try {
|
||||
let { from, limit } = pagination.getPaginationProps(req.query)
|
||||
let thread = await Thread.findById(req.params.thread_id, {
|
||||
|
|
Loading…
Reference in New Issue