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.
 

15 lines
257 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 })
} catch (err) {
fastify.log.error(err)
process.exit(1)
}