rename 'routes' in blueprints to 'resources'

routes was a confusing semantics that was not in order with the rest of the architecture
This commit is contained in:
Lachlan Kermode
2018-12-07 12:32:32 +00:00
parent 565a36083f
commit 8a5bce0842
10 changed files with 45 additions and 39 deletions

View File

@@ -77,11 +77,11 @@ export function desaturate (full) {
name: R.clone(full.name),
sheet: R.clone(full.sheet),
dialects: R.clone(full.dialects),
routes: {}
resources: {}
}
Object.keys(full.routes).forEach(route => {
blueprint.routes[route] = {
options: R.clone(full.routes[route].options)
Object.keys(full.resources).forEach(route => {
blueprint.resources[route] = {
options: R.clone(full.resources[route].options)
}
})
return blueprint