mirror of
https://github.com/System-End/spaces.git
synced 2026-04-19 15:28:27 +00:00
fix rate limmiting
This commit is contained in:
parent
0f18d2d4be
commit
a5875c4595
1 changed files with 7 additions and 7 deletions
|
|
@ -13,7 +13,7 @@ import {
|
|||
getClubMembers,
|
||||
unlinkUserFromClub
|
||||
} from '../../utils/clubs.js';
|
||||
import { clubsLimiter } from '../../middlewares/rate-limit.middleware.js';
|
||||
|
||||
|
||||
const router = express.Router();
|
||||
|
||||
|
|
@ -23,7 +23,7 @@ router.get('/', (req, res) => {
|
|||
});
|
||||
});
|
||||
|
||||
router.post('/link', clubsLimiter, async (req, res) => {
|
||||
router.post('/link', async (req, res) => {
|
||||
try {
|
||||
const authorization = req.headers.authorization;
|
||||
|
||||
|
|
@ -90,7 +90,7 @@ router.post('/link', clubsLimiter, async (req, res) => {
|
|||
}
|
||||
});
|
||||
|
||||
router.post('/unlink', clubsLimiter, async (req, res) => {
|
||||
router.post('/unlink', async (req, res) => {
|
||||
try {
|
||||
const authorization = req.headers.authorization;
|
||||
|
||||
|
|
@ -133,7 +133,7 @@ router.post('/unlink', clubsLimiter, async (req, res) => {
|
|||
}
|
||||
});
|
||||
|
||||
router.get('/me', clubsLimiter, async (req, res) => {
|
||||
router.get('/me', async (req, res) => {
|
||||
try {
|
||||
const authorization = req.headers.authorization;
|
||||
|
||||
|
|
@ -203,7 +203,7 @@ router.get('/me', clubsLimiter, async (req, res) => {
|
|||
}
|
||||
});
|
||||
|
||||
router.get('/me/details', clubsLimiter, async (req, res) => {
|
||||
router.get('/me/details', async (req, res) => {
|
||||
try {
|
||||
const authorization = req.headers.authorization;
|
||||
|
||||
|
|
@ -262,7 +262,7 @@ router.get('/me/details', clubsLimiter, async (req, res) => {
|
|||
}
|
||||
});
|
||||
|
||||
router.get('/me/ships', clubsLimiter, async (req, res) => {
|
||||
router.get('/me/ships', async (req, res) => {
|
||||
try {
|
||||
const authorization = req.headers.authorization;
|
||||
|
||||
|
|
@ -313,7 +313,7 @@ router.get('/me/ships', clubsLimiter, async (req, res) => {
|
|||
}
|
||||
});
|
||||
|
||||
router.get('/me/members', clubsLimiter, async (req, res) => {
|
||||
router.get('/me/members', async (req, res) => {
|
||||
try {
|
||||
const authorization = req.headers.authorization;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue