UNPKG

waibu

Version:

Web Framework for Bajo

13 lines (11 loc) 278 B
async function reroutedPath (path, mapper = {}) { const { routePath } = this.app.waibu let result for (let k in mapper) { const v = routePath(mapper[k]) k = routePath(k) if (k === path) result = v } return result } export default reroutedPath