aboutsummaryrefslogtreecommitdiff
path: root/lib/handlers/api.js
diff options
context:
space:
mode:
authorRubén Rincón Blanco <ruben@rinconblanco.es>2022-08-25 21:51:10 +0200
committerGitHub <noreply@github.com>2022-08-25 21:51:10 +0200
commit16dca9d307220229b80327ea0998c4cecec9137b (patch)
tree0a0b5b687f1bc67316afcf0e66a0ca569d727db7 /lib/handlers/api.js
parent105b814acfc3f8b0286d0f59f3204be3dec3f9d3 (diff)
downloadcompiler-explorer-gh-4022.tar.gz
compiler-explorer-gh-4022.zip
Bring back old behaviour of 404 on missing compiler (#3981)gh-4022
Diffstat (limited to 'lib/handlers/api.js')
-rw-r--r--lib/handlers/api.js9
1 files changed, 1 insertions, 8 deletions
diff --git a/lib/handlers/api.js b/lib/handlers/api.js
index c355cb06f..0301aa806 100644
--- a/lib/handlers/api.js
+++ b/lib/handlers/api.js
@@ -91,18 +91,11 @@ export class ApiHandler {
this.handle
.route('/popularArguments/:compiler')
.post(compileHandler.handlePopularArguments.bind(compileHandler))
- .all(methodNotAllowed);
- this.handle
- .route('/optimizationArguments/:compiler')
- .post(compileHandler.handleOptimizationArguments.bind(compileHandler))
- .all(methodNotAllowed);
-
- this.handle
- .route('/popularArguments/:compiler')
.get(compileHandler.handlePopularArguments.bind(compileHandler))
.all(methodNotAllowed);
this.handle
.route('/optimizationArguments/:compiler')
+ .post(compileHandler.handleOptimizationArguments.bind(compileHandler))
.get(compileHandler.handleOptimizationArguments.bind(compileHandler))
.all(methodNotAllowed);