homebridge-config-ui-x
Version:
A web based management, configuration and control platform for Homebridge
27 lines (24 loc) • 461 B
JavaScript
const fastify = require('../fastify')()
const opts = {
schema: {
response: {
'2xx': {
type: 'object',
properties: {
hello: {
type: 'string'
}
}
}
}
}
}
fastify.register(require('./plugin'), opts, function (err) {
if (err) throw err
})
fastify.listen(3000, function (err) {
if (err) {
throw err
}
console.log(`server listening on ${fastify.server.address().port}`)
})