🦀🏡 Checkpoint

./server.js:617503/3
./src/api/flavors.js:617503/27
This commit is contained in:
Glitch (hello-express) committed 2020-11-30 18:04:05 +00:00
1 parent 041458bef3
commit 8267ac8b77
2 files changed
+2

No files matched your search

+1
View File
@@ -17,6 +17,7 @@ fastify.get("/", function(request, reply) {
return reply.sendFile('index.html') return reply.sendFile('index.html')
}); });
// Our API route, fastify automatically turns it to JSON // Our API route, fastify automatically turns it to JSON
fastify.get("/api/flavors", function(request, reply) { fastify.get("/api/flavors", function(request, reply) {
reply.send({ hello: 'world' }) reply.send({ hello: 'world' })
+1
View File
@@ -0,0 +1 @@
const flavors = { }