mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-05-14 11:06:55 -04:00
add Mediawiki support
This commit is contained in:
parent
e19c05d1c4
commit
d1bf009071
7 changed files with 379 additions and 1 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", "dokuwiki"];
|
||||
var types = ["pdf", "doc", "txt", "html", "odt", "dokuwiki", "mediawiki"];
|
||||
//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