const express = require('express')

const internalRouter = require('./internal/internal.routes')

const app = express()

// Internal-only listener, but don't advertise the stack anyway (defense in depth).
app.disable('x-powered-by')

app.use(express.json())

app.get('/health', (req, res) => res.json({ status: 'ok' }))
app.use('/internal', internalRouter)

module.exports = app
