mirror of
https://github.com/flarum/framework.git
synced 2024-12-04 16:23:37 +08:00
8 lines
144 B
JavaScript
8 lines
144 B
JavaScript
|
export default function mapRoutes(routes) {
|
||
|
var map = {};
|
||
|
for (var r in routes) {
|
||
|
map[routes[r][0]] = routes[r][1];
|
||
|
}
|
||
|
return map;
|
||
|
}
|