mirror of
https://github.com/YunoHost/yunohost-admin.git
synced 2024-09-03 20:06:15 +02:00
Use regex to match app_install patch in sam.before
This commit is contained in:
parent
7d1b4a9c72
commit
97b6d59d90
1 changed files with 2 additions and 2 deletions
|
@ -221,14 +221,14 @@ app = Sammy('#main', function (sam) {
|
|||
* Filters
|
||||
*
|
||||
*/
|
||||
sam.before(['#/apps/install/:app'], function (req){
|
||||
sam.before(/apps\/install\//, function (req){
|
||||
// Preload domains list.
|
||||
req.params.domains = [];
|
||||
req.api('/domains', function(data) {
|
||||
req.params.domains = data.Domains;
|
||||
});
|
||||
});
|
||||
sam.before(['#/apps/install/:app'], function (req){
|
||||
sam.before(/apps\/install\//, function (req){
|
||||
// Preload users lists.
|
||||
req.params.users = [];
|
||||
req.api('/users', function(data) {
|
||||
|
|
Loading…
Reference in a new issue