Remove API limits for /api/runs in GET mode

This commit is contained in:
Gaël Métais
2021-03-10 07:11:13 +00:00
parent dc5bd2e71e
commit 92d92b8021
@@ -13,7 +13,7 @@ var apiLimitsMiddleware = function(req, res, next) {
if (req.path.indexOf('/api/') === 0 && !res.locals.hasApiKey) {
if (req.path === '/api/runs') {
if (req.path === '/api/runs' && req.method === 'POST') {
if (!runsTable.accepts(ipAddress)) {
// Sorry :/