From 8267ac8b7724d190d04d0c884260e68d143a89d1 Mon Sep 17 00:00:00 2001 From: "Glitch (hello-express)" Date: Mon, 30 Nov 2020 18:04:05 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=A6=80=F0=9F=8F=A1=20Checkpoint=20./serve?= =?UTF-8?q?r.js:617503/3=20./src/api/flavors.js:617503/27?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server.js | 1 + src/api/flavors.js | 1 + 2 files changed, 2 insertions(+) diff --git a/server.js b/server.js index 40196d6..7b49f90 100644 --- a/server.js +++ b/server.js @@ -17,6 +17,7 @@ fastify.get("/", function(request, reply) { return reply.sendFile('index.html') }); + // Our API route, fastify automatically turns it to JSON fastify.get("/api/flavors", function(request, reply) { reply.send({ hello: 'world' }) diff --git a/src/api/flavors.js b/src/api/flavors.js index e69de29..5bf678e 100644 --- a/src/api/flavors.js +++ b/src/api/flavors.js @@ -0,0 +1 @@ +const flavors = { } \ No newline at end of file