mirror of
https://github.com/Redume/Kekkai.git
synced 2025-02-23 12:43:12 +03:00
29 lines
No EOL
431 B
JavaScript
29 lines
No EOL
431 B
JavaScript
const fastify = require('fastify')({ logger: true });
|
|
|
|
fastify.route({
|
|
method: 'GET',
|
|
url: '/',
|
|
schema: {
|
|
querystring: {
|
|
|
|
},
|
|
response: {
|
|
200: {
|
|
|
|
}
|
|
}
|
|
},
|
|
preHandler: async (res, reply) => {
|
|
|
|
},
|
|
handler: async (res, reply) => {
|
|
|
|
}
|
|
})
|
|
|
|
try {
|
|
await fastify.listen({ port: 3000 })
|
|
} catch (err) {
|
|
fastify.log.error(err)
|
|
process.exit(1)
|
|
} |