mirror of
https://github.com/flarum/framework.git
synced 2025-05-23 15:19:56 +08:00
Replace Ember app with Mithril app
This commit is contained in:
7
js/lib/utils/map-routes.js
Normal file
7
js/lib/utils/map-routes.js
Normal file
@ -0,0 +1,7 @@
|
||||
export default function mapRoutes(routes) {
|
||||
var map = {};
|
||||
for (var r in routes) {
|
||||
map[routes[r][0]] = routes[r][1];
|
||||
}
|
||||
return map;
|
||||
}
|
Reference in New Issue
Block a user