Browse Source

Remove API limits for /api/runs in GET mode

Gaël Métais 4 years ago
parent
commit
92d92b8021
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lib/server/middlewares/apiLimitsMiddleware.js

+ 1 - 1
lib/server/middlewares/apiLimitsMiddleware.js

@@ -13,7 +13,7 @@ var apiLimitsMiddleware = function(req, res, next) {
     if (req.path.indexOf('/api/') === 0 && !res.locals.hasApiKey) {
     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)) {
             if (!runsTable.accepts(ipAddress)) {
                 // Sorry :/
                 // Sorry :/