badgen.net/libs/serve-404.js

11 wiersze
216 B
JavaScript

const serveBadge = require('./serve-badge.js')
module.exports = function serve404 (req, res) {
req.params = {
subject: 'Badgen',
status: '404',
color: 'red'
}
serveBadge(req, res, { code: 404 })
}