Skip to content

Commit

Permalink
Fixed export.
Browse files Browse the repository at this point in the history
  • Loading branch information
SamTV12345 committed Oct 1, 2024
1 parent 6b6f9e5 commit c8b5dc2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/node/hooks/express/importexport.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ exports.expressCreateServer = (hookName:string, args:ArgsExpressType, cb:Functio
});

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

0 comments on commit c8b5dc2

Please sign in to comment.