MCPcopy Create free account
hub / github.com/apache/cloudstack / GenerateRoutes

Function GenerateRoutes

ui/src/store/modules/permission.js:72–79  ·  view source on GitHub ↗
({ commit }, data)

Source from the content-addressed store, hash-verified

70 },
71 actions: {
72 GenerateRoutes ({ commit }, data) {
73 return new Promise(resolve => {
74 const apis = Object.keys(data.apis)
75 const accessedRouters = filterAsyncRouter(asyncRouterMap(), apis)
76 commit('SET_ROUTERS', accessedRouters)
77 resolve()
78 })
79 }
80 }
81}
82

Callers

nothing calls this directly

Calls 4

asyncRouterMapFunction · 0.90
filterAsyncRouterFunction · 0.85
keysMethod · 0.80
resolveFunction · 0.50

Tested by

no test coverage detected