mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-22 08:26:16 -04:00
The big rename of pluginbs from pluginomatic to ep
This commit is contained in:
parent
758666c3e1
commit
da52353ba3
16 changed files with 48 additions and 48 deletions
|
@ -10,9 +10,9 @@ exports.expressCreateServer = function (hook_name, args, cb) {
|
|||
res.end();
|
||||
});
|
||||
|
||||
/* Handle paths like "/static/js/plugins/pluginomatic_myplugin/test.js"
|
||||
/* Handle paths like "/static/js/plugins/ep_myplugin/test.js"
|
||||
by rewriting it to ROOT_PATH_OF_MYPLUGIN/static/js/test.js,
|
||||
commonly ETHERPAD_ROOT/node_modules/pluginomatic_myplugin/static/js/test.js
|
||||
commonly ETHERPAD_ROOT/node_modules/ep_myplugin/static/js/test.js
|
||||
*/
|
||||
args.app.get(/^\/static\/([^\/]+)\/plugins\/([^\/]+)\/(.*)/, function(req, res) {
|
||||
var type_dir = req.params[0].replace(/\.\./g, '').split("?")[0];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue