mirror of
https://github.com/Redume/Kekkai.git
synced 2025-02-23 20:51:25 +03:00
29 lines
431 B
JavaScript
29 lines
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)
|
||
|
}
|