🦀🏡 Checkpoint
./server.js:617503/3 ./src/api/flavors.js:617503/27
This commit is contained in:
@@ -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' })
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
const flavors = { }
|
||||
Reference in New Issue
Block a user