chore: code cleanuo
This commit is contained in:
@@ -12,7 +12,7 @@ const corsOptions = {
|
|||||||
await fastify.register(cors, corsOptions)
|
await fastify.register(cors, corsOptions)
|
||||||
|
|
||||||
fastify.get('/', async (request, reply) => {
|
fastify.get('/', async (request, reply) => {
|
||||||
reply.send('Hello Word!');
|
reply.send('Vroom Vroom Vroom');
|
||||||
});
|
});
|
||||||
|
|
||||||
fastify.post('/scrape', async (request, reply) => {
|
fastify.post('/scrape', async (request, reply) => {
|
||||||
@@ -25,7 +25,6 @@ fastify.post('/scrape', async (request, reply) => {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
await fastify.listen(3000, (err, address) => {
|
await fastify.listen(3000, (err, address) => {
|
||||||
if (err) throw err;
|
if (err) throw err;
|
||||||
console.log(`Server listening on ${fastify.server.address().port}`)
|
console.log(`Server listening on ${fastify.server.address().port}`)
|
||||||
|
|||||||
Reference in New Issue
Block a user