-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathlibrary.js
More file actions
34 lines (26 loc) · 820 Bytes
/
library.js
File metadata and controls
34 lines (26 loc) · 820 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
(function(module) {
"use strict";
var Plugin = {};
// static:app.load
Plugin.init = function(params, callback) {
var app = params.router,
middleware = params.middleware,
controllers = params.controllers;
require('./lib/customRoutes')(app, middleware, controllers);
require('./lib/adminPage')(app, middleware, controllers);
callback();
};
require('./lib/nodebb');
require('./lib/userSettings')(Plugin);
require('./lib/menuItems')(Plugin);
// require('./lib/clientScripts')(Plugin);
require('./lib/profileMenu')(Plugin);
// routing for tipping history
/*
Plugin.changeClientRouting = function (config, callback){
config.custom_mapping['^user/[.^\/]*history'] = 'account/history';
callback(null, config);
}
*/
module.exports = Plugin;
}(module));