You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

16 lines
302 B

import Fastify from 'fastify'
import index from './controller/index.js';
const fastify = Fastify({
logger: true
})
fastify.register(index)
try {
await fastify.listen({ port: 3000 })
console.log('Server ready on port 3000')
} catch (err) {
fastify.log.error(err)
process.exit(1)
}