mirror of
https://github.com/timvisee/send.git
synced 2025-10-05 10:29:26 +02:00
added hmac auth to report route
This commit is contained in:
parent
2f6119e2f1
commit
d9cbe058ab
7 changed files with 39 additions and 50 deletions
|
@ -127,7 +127,7 @@ module.exports = function(app) {
|
|||
require('./params')
|
||||
);
|
||||
app.post(`/api/info/:id${ID_REGEX}`, auth.owner, require('./info'));
|
||||
app.post(`/api/report/:id${ID_REGEX}`, require('./report'));
|
||||
app.post(`/api/report/:id${ID_REGEX}`, auth.hmac, require('./report'));
|
||||
app.post('/api/metrics', require('./metrics'));
|
||||
app.get('/__version__', function(req, res) {
|
||||
// eslint-disable-next-line node/no-missing-require
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue