// СÑаÑиÑеÑкие ÑайлÑ
fastify.register(require('fastify-static'), {
root: path.join(__dirname, './static')
})
// this will work with fastify-static and send ./static/index.html
fastify.setNotFoundHandler((req, res) => {
res.sendFile('index.html')
})
// Here go yours routes with prefix
fastify.register(async openRoutes => {
openRoutes.register(require('./server/api/open'))
}, { prefix: '/api' })