diff --git a/routes/api.js b/routes/api.js index b5dcd12..e630687 100644 --- a/routes/api.js +++ b/routes/api.js @@ -9,12 +9,13 @@ var router = express.Router(); * // TODO: Crawl site map and queue all pages */ router.get('/test/accessibility/:domain', function(req, res) { + req.setTimeout(5000000000000); const domain = req.params.domain; // Get the domain from the request parameters const playwrightService = new PlaywrightService(domain); // Call the runAccessibilityTest method - playwrightService.runAccessibilityTest().then(results => { + playwrightService.getAccessibilityResults().then(results => { // Send the results as a JSON response res.json(results); }).catch(err => {