diff options
Diffstat (limited to 'lib/handlers/api.js')
-rw-r--r-- | lib/handlers/api.js | 9 |
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); |