add Mediawiki support

This commit is contained in:
François Boulogne 2012-11-02 14:06:48 +01:00
parent e19c05d1c4
commit d1bf009071
7 changed files with 379 additions and 1 deletions

View file

@ -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();