]> git.immae.eu Git - perso/Immae/Projets/Nodejs/Surfer.git/blobdiff - app.js
Provide separate healthcheck route
[perso/Immae/Projets/Nodejs/Surfer.git] / app.js
diff --git a/app.js b/app.js
index 4570b07a4e92bfbd8d33ead26c45cc6de3e0240e..678f39166eb059357c9b3636e5b68620f78a4459 100755 (executable)
--- a/app.js
+++ b/app.js
@@ -27,6 +27,7 @@ var multipart = multipart({ maxFieldsSize: 2 * 1024, limit: '512mb', timeout: 3
 router.get   ('/api/files/*', auth.ldap, files.get);
 router.put   ('/api/files/*', auth.ldap, multipart, files.put);
 router.delete('/api/files/*', auth.ldap, files.del);
+router.get   ('/api/healthcheck', function (req, res) { res.status(200).send(); });
 
 // welcome screen in case / does not serve up any file yet
 var appUrl = process.env.APP_ORIGIN ? process.env.APP_ORIGIN : 'http://localhost:3000';