X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;ds=sidebyside;f=app.js;h=678f39166eb059357c9b3636e5b68620f78a4459;hb=1a8d99e453896f9b28b9347c200bdad1113b11f1;hp=4570b07a4e92bfbd8d33ead26c45cc6de3e0240e;hpb=5c6f8c0a837a09bc876c9705c0941888cdf3a4f6;p=perso%2FImmae%2FProjets%2FNodejs%2FSurfer.git diff --git a/app.js b/app.js index 4570b07..678f391 100755 --- 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';