added '-' to /api/filelist validation
This commit is contained in:
parent
72b41c158b
commit
f968083f74
|
@ -88,8 +88,8 @@ module.exports = function(app) {
|
||||||
);
|
);
|
||||||
app.get(`/api/exists/:id${ID_REGEX}`, require('./exists'));
|
app.get(`/api/exists/:id${ID_REGEX}`, require('./exists'));
|
||||||
app.get(`/api/metadata/:id${ID_REGEX}`, auth.hmac, require('./metadata'));
|
app.get(`/api/metadata/:id${ID_REGEX}`, auth.hmac, require('./metadata'));
|
||||||
app.get('/api/filelist/:id(\\w{16})', auth.fxa, filelist.get);
|
app.get('/api/filelist/:id([\\w-]{16})', auth.fxa, filelist.get);
|
||||||
app.post('/api/filelist/:id(\\w{16})', auth.fxa, filelist.post);
|
app.post('/api/filelist/:id([\\w-]{16})', auth.fxa, filelist.post);
|
||||||
app.post('/api/upload', auth.fxa, require('./upload'));
|
app.post('/api/upload', auth.fxa, require('./upload'));
|
||||||
app.post(`/api/delete/:id${ID_REGEX}`, auth.owner, require('./delete'));
|
app.post(`/api/delete/:id${ID_REGEX}`, auth.owner, require('./delete'));
|
||||||
app.post(`/api/password/:id${ID_REGEX}`, auth.owner, require('./password'));
|
app.post(`/api/password/:id${ID_REGEX}`, auth.owner, require('./password'));
|
||||||
|
|
Loading…
Reference in New Issue