🦀🏡 Checkpoint

./server.js:617503/3
./src/api/flavors.js:617503/27
This commit is contained in:
Glitch (hello-express)
2020-11-30 18:04:05 +00:00
parent 041458bef3
commit 8267ac8b77
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -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' })
+1
View File
@@ -0,0 +1 @@
const flavors = { }