Commit 1a8d99e4 by Johannes Zellner

Provide separate healthcheck route

1 parent fdb8868c
Showing with 2 additions and 1 deletions
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
], ],
"version": "0.4.2", "version": "0.4.2",
"targetBoxVersion": "0.4.0", "targetBoxVersion": "0.4.0",
"healthCheckPath": "/", "healthCheckPath": "/api/healthcheck",
"httpPort": 3000, "httpPort": 3000,
"manifestVersion": 1, "manifestVersion": 1,
"website": "https://github.com/nebulade/surfer", "website": "https://github.com/nebulade/surfer",
......
...@@ -27,6 +27,7 @@ var multipart = multipart({ maxFieldsSize: 2 * 1024, limit: '512mb', timeout: 3 ...@@ -27,6 +27,7 @@ var multipart = multipart({ maxFieldsSize: 2 * 1024, limit: '512mb', timeout: 3
router.get ('/api/files/*', auth.ldap, files.get); router.get ('/api/files/*', auth.ldap, files.get);
router.put ('/api/files/*', auth.ldap, multipart, files.put); router.put ('/api/files/*', auth.ldap, multipart, files.put);
router.delete('/api/files/*', auth.ldap, files.del); 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 // welcome screen in case / does not serve up any file yet
var appUrl = process.env.APP_ORIGIN ? process.env.APP_ORIGIN : 'http://localhost:3000'; var appUrl = process.env.APP_ORIGIN ? process.env.APP_ORIGIN : 'http://localhost:3000';
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!