mirror of
https://github.com/wekan/wekan.git
synced 2025-09-22 01:50:48 +02:00

Fixes: #5533
Fixes: #5548
Revert "Switch from kadira:flow-router to ostrio:flow-router-extra"
This reverts commit 718c1a393d
.
18 lines
430 B
JavaScript
18 lines
430 B
JavaScript
Group = function(router, options) {
|
|
options = options || {};
|
|
this.prefix = options.prefix || '';
|
|
this.options = options;
|
|
this._router = router;
|
|
};
|
|
|
|
Group.prototype.route = function(pathDef, options) {
|
|
pathDef = this.prefix + pathDef;
|
|
return this._router.route(pathDef, options);
|
|
};
|
|
|
|
Group.prototype.group = function(options) {
|
|
var group = new Group(this._router, options);
|
|
group.parent = this;
|
|
|
|
return group;
|
|
};
|