mirror of
https://github.com/flarum/framework.git
synced 2024-12-05 00:43:39 +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;
|
|
}
|