Merge pull request #56 from forensic-architecture/feature/refactor-categories

Feature/refactor categories
This commit is contained in:
Ebrahem Farooqui
2020-10-20 15:22:26 -07:00
committed by GitHub
2 changed files with 2 additions and 2 deletions

View File

@@ -1,4 +1,5 @@
import http from 'http' import http from 'http'
import path from 'path'
import express from 'express' import express from 'express'
import initialize from './initialize' import initialize from './initialize'
import middleware from './middleware' import middleware from './middleware'
@@ -40,7 +41,7 @@ initialize(controller => {
}) })
) )
app.use(express.static(__dirname + '/public')) app.use(express.static(path.join(__dirname, 'public')))
app.server.listen(process.env.PORT || 4040, () => { app.server.listen(process.env.PORT || 4040, () => {
console.log('===========================================') console.log('===========================================')

View File

@@ -5,7 +5,6 @@ function prefixedTabs (prefix, cfg) {
const prf = key => cfg[key] ? `${prefix}_` : '' const prf = key => cfg[key] ? `${prefix}_` : ''
return { return {
[`${prf('events')}export_events`]: BP.deeprows, [`${prf('events')}export_events`]: BP.deeprows,
[`${prf('categories')}export_categories`]: [BP.groups, BP.rows],
[`${prf('associations')}export_associations`]: BP.deeprows, [`${prf('associations')}export_associations`]: BP.deeprows,
[`${prf('sources')}export_sources`]: BP.deepids, [`${prf('sources')}export_sources`]: BP.deepids,
[`${prf('sites')}export_sites`]: BP.rows [`${prf('sites')}export_sites`]: BP.rows