mirror of
https://github.com/bellingcat/datasheet-server.git
synced 2026-06-10 20:38:32 +03:00
add xlsx support
by factoring out a Fetcher class
This commit is contained in:
@@ -12,7 +12,12 @@ export default ({ config, controller }) => {
|
||||
})
|
||||
|
||||
api.get('/blueprints', (req, res) => {
|
||||
res.json(controller.blueprints())
|
||||
const bps = controller.blueprints()
|
||||
res.json(bps.map(bp => ({
|
||||
source: bp.sheet.name,
|
||||
tab: bp.name,
|
||||
urls: bp.urls
|
||||
})))
|
||||
})
|
||||
|
||||
api.get('/update', (req, res) => {
|
||||
|
||||
Reference in New Issue
Block a user