mock api rewtite + more vuex
This commit is contained in:
@@ -1,11 +1,27 @@
|
||||
{
|
||||
"index": ["infobases", "publications", "module", "config"],
|
||||
"infobases":["test1", "accounting", "bpdemo", "hrm31", "Trade-2021"],
|
||||
"publications":["accounting", "hrm31"],
|
||||
"publication":[
|
||||
{"name": "accounting", "url": "/acc"},
|
||||
{"name": "hrm31", "url": "/hrm"}
|
||||
"index": ["infobases-all", "infobases-available", "publications", "module", "config", "config-test", "apache-restart"],
|
||||
"infobases-available":["test1", "accounting", "bpdemo", "hrm31", "Trade-2021"],
|
||||
"infobases-all":[
|
||||
{"name": "test1", "url": "", "publicated": false},
|
||||
{"name": "accounting", "url": "/acc", "publicated": true},
|
||||
{"name": "bpdemo", "url": "", "publicated": false},
|
||||
{"name": "hrm31", "url": "/hrm", "publicated": true},
|
||||
{"name": "Trade-2021", "url": "", "publicated": false}
|
||||
],
|
||||
"publications":[
|
||||
{"name": "accounting", "url": "/acc", "publicated": true},
|
||||
{"name": "hrm31", "url": "/hrm", "publicated": true}
|
||||
],
|
||||
"module":{},
|
||||
"config":{}
|
||||
"config":{
|
||||
"url_prefix": "http://localhost"
|
||||
|
||||
},
|
||||
"config-test":{
|
||||
"is_apache_cfg_valid": true,
|
||||
"is_vrd_path_valid": true,
|
||||
"is_dir_path_valid": true,
|
||||
"is_url_base_valid": true,
|
||||
"is_module_valid": true
|
||||
}
|
||||
}
|
@@ -1,7 +1,5 @@
|
||||
{
|
||||
"/api/v1/*": "/$1",
|
||||
"/": "/index",
|
||||
"": "/index",
|
||||
"/publications/:name": "/publication/:name",
|
||||
"/publications/:name/url": "/publication/:name"
|
||||
}
|
||||
"/api/v1/*": "/$1",
|
||||
"/": "/index",
|
||||
"": "/index"
|
||||
}
|
||||
|
Reference in New Issue
Block a user