From dd7beec4639aeb44db0a32394e3fe570a00de873 Mon Sep 17 00:00:00 2001 From: AdamChrimes Date: Thu, 12 Dec 2019 12:22:13 +0000 Subject: [PATCH] move the search index function to an endpoint --- app.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app.js b/app.js index 5c12296e1..bd5dc8b9e 100755 --- a/app.js +++ b/app.js @@ -155,6 +155,11 @@ app.get('/service-manual/robots.txt', (_, res) => { res.render('robots.txt'); }); +// Reindex the search results +app.get('/service-manual/scrape', (_, res) => { + pageIndex.init(); +}); + // Render 404 page app.get('*', (_, res) => { res.statusCode = 404;