mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-01-19 06:03:34 +01:00
Fixed export.
This commit is contained in:
parent
6b6f9e535f
commit
c8b5dc269a
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue