mirror of
https://github.com/bellingcat/datasheet-server.git
synced 2026-06-11 04:48:32 +03:00
add handlebars for blueprints
This commit is contained in:
@@ -13,11 +13,13 @@ export default ({ config, controller }) => {
|
||||
|
||||
api.get('/blueprints', (req, res) => {
|
||||
const bps = controller.blueprints()
|
||||
res.json(bps.map(bp => ({
|
||||
source: bp.sheet.name,
|
||||
tab: bp.name,
|
||||
urls: bp.urls
|
||||
})))
|
||||
res.render('blueprints', {
|
||||
bps: 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