mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-22 08:26:16 -04:00
Merge pull request #2418 from ether/etherpad-export-and-import
Full Pad portability (Export/Import)
This commit is contained in:
commit
036b7d2890
9 changed files with 261 additions and 64 deletions
|
@ -5,7 +5,7 @@ var importHandler = require('../../handler/ImportHandler');
|
|||
|
||||
exports.expressCreateServer = function (hook_name, args, cb) {
|
||||
args.app.get('/p/:pad/:rev?/export/:type', function(req, res, next) {
|
||||
var types = ["pdf", "doc", "txt", "html", "odt"];
|
||||
var types = ["pdf", "doc", "txt", "html", "odt", "etherpad"];
|
||||
//send a 404 if we don't support this filetype
|
||||
if (types.indexOf(req.params.type) == -1) {
|
||||
next();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue