diff options
author | Johannes <johannes@cloudron.io> | 2016-11-17 12:54:21 +0100 |
---|---|---|
committer | Johannes <johannes@cloudron.io> | 2016-11-17 12:54:21 +0100 |
commit | 3d716d9ef715d3bfd70631161d022abda0467b71 (patch) | |
tree | d831396e73b3d4e5d96bbd30b8468fc621bd5650 /app.js | |
parent | f9f5c021adfc209eb095e682292db5e1ccdd272c (diff) | |
download | Surfer-3d716d9ef715d3bfd70631161d022abda0467b71.tar.gz Surfer-3d716d9ef715d3bfd70631161d022abda0467b71.tar.zst Surfer-3d716d9ef715d3bfd70631161d022abda0467b71.zip |
Rename auth exports
Diffstat (limited to 'app.js')
-rwxr-xr-x | app.js | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -22,9 +22,9 @@ var router = new express.Router(); | |||
22 | 22 | ||
23 | var multipart = multipart({ maxFieldsSize: 2 * 1024, limit: '512mb', timeout: 3 * 60 * 1000 }); | 23 | var multipart = multipart({ maxFieldsSize: 2 * 1024, limit: '512mb', timeout: 3 * 60 * 1000 }); |
24 | 24 | ||
25 | router.get ('/api/files/*', auth.ldap, files.get); | 25 | router.get ('/api/files/*', auth.verify, files.get); |
26 | router.put ('/api/files/*', auth.ldap, multipart, files.put); | 26 | router.put ('/api/files/*', auth.verify, multipart, files.put); |
27 | router.delete('/api/files/*', auth.ldap, files.del); | 27 | router.delete('/api/files/*', auth.verify, files.del); |
28 | router.get ('/api/healthcheck', function (req, res) { res.status(200).send(); }); | 28 | router.get ('/api/healthcheck', function (req, res) { res.status(200).send(); }); |
29 | 29 | ||
30 | // welcome screen in case / does not serve up any file yet | 30 | // welcome screen in case / does not serve up any file yet |