aboutsummaryrefslogtreecommitdiff
path: root/lib/handlers/api.js
diff options
context:
space:
mode:
authorPatrick Quist <partouf@gmail.com>2022-08-25 21:52:09 +0200
committerGitHub <noreply@github.com>2022-08-25 21:52:09 +0200
commit5b485d36e3708e192b63400d3bc30bb22cf33330 (patch)
treea6db770b803b7b6e82fa7224f331b38b7797f220 /lib/handlers/api.js
parent098e0abc4dc870278f1ab4c060c420a5999b54b3 (diff)
parent16dca9d307220229b80327ea0998c4cecec9137b (diff)
downloadcompiler-explorer-gh-4023.tar.gz
compiler-explorer-gh-4023.zip
Merge branch 'main' into z88dkgh-4023
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);