mirror of
https://github.com/bellingcat/datasheet-server.git
synced 2026-06-11 04:48:32 +03:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user