Skip to content

Commit cca1ff2

Browse files
committed
Fixed export.
1 parent 03fbec2 commit cca1ff2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/node/hooks/express/importexport.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ exports.expressCreateServer = (hookName:string, args:ArgsExpressType, cb:Functio
2525
});
2626

2727
// handle export requests
28-
args.app.use('/p/:pad/:rev{.:ext}/export/:type', limiter);
29-
args.app.get('/p/:pad/:rev{.:ext}/export/:type', (req:any, res:any, next:Function) => {
28+
args.app.use('/p/:pad{/:rev}/export/:type', limiter);
29+
args.app.get('/p/:pad{/:rev}/export/:type', (req:any, res:any, next:Function) => {
3030
(async () => {
3131
const types = ['pdf', 'doc', 'txt', 'html', 'odt', 'etherpad'];
3232
// send a 404 if we don't support this filetype

0 commit comments

Comments
 (0)