🦀🏡 Checkpoint
./server.js:617503/3 ./src/api/flavors.js:617503/27
This commit is contained in:
1 parent
041458bef3
commit
8267ac8b77
2 files changed
+2
No files matched your search
@@ -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' })
|
||||||
|
|||||||
@@ -0,0 +1 @@
|
|||||||
|
const flavors = { }
|
||||||
Reference in new issue
Block a user