mirror of
https://github.com/bellingcat/datasheet-server.git
synced 2026-06-11 04:48:32 +03:00
defaultRoute -> defaultResource
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import path from 'path'
|
||||
import fs from 'fs'
|
||||
import R from 'ramda'
|
||||
|
||||
export const defaultBlueprint = {
|
||||
name: null,
|
||||
@@ -8,13 +9,17 @@ export const defaultBlueprint = {
|
||||
resources: {}
|
||||
}
|
||||
|
||||
export const defaultRoute = {
|
||||
export const defaultResource = {
|
||||
options: {
|
||||
fragment: true
|
||||
},
|
||||
data: []
|
||||
}
|
||||
|
||||
export function buildDesaturated (tab, resource) {
|
||||
const bp = R.clone(defaultBlueprint)
|
||||
}
|
||||
|
||||
// import all default exports from 'blueprinters' folder
|
||||
const allBps = {}
|
||||
const REL_PATH_TO_BPS = '../blueprinters'
|
||||
@@ -28,5 +33,5 @@ fs.readdirSync(normalizedPath).forEach(file => {
|
||||
// each file in blueprinters folder available for granular import from here.
|
||||
module.exports = Object.assign({
|
||||
defaultBlueprint,
|
||||
defaultRoute
|
||||
defaultResource
|
||||
}, allBps)
|
||||
|
||||
Reference in New Issue
Block a user