Chapter 4,6: prettier updates and web framework samples
This commit is contained in:
@@ -2,9 +2,7 @@ const fastify = require("fastify")();
|
||||
|
||||
const PORT = process.env.PORT || 3000;
|
||||
|
||||
fastify.get("/", async (request, reply) => {
|
||||
return { message: "Hello world!" };
|
||||
});
|
||||
fastify.register(require("./plugins/hello-route"));
|
||||
|
||||
const startServer = async () => {
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user