import fastify from "fastify";

const server = fastify();

server.get("/", async (request, reply) => {
  reply.code(200).send({ message: "Hello world!" });
});

server.listen(process.env.PORT || 5555, "0.0.0.0", (err, address) => {
  if (err) {
    console.error(err);
    process.exit(1);
  }
  console.log(`Server listening at ${address}`);
});
