~jae/neos-headless-manager

0ef4d6fdd573ddd54861d7b2a818fd01061bdcdf — Jae Lo Presti (DN0) 7 months ago 605be25
routes: add dummy route and remove gitkeep
2 files changed, 11 insertions(+), 0 deletions(-)

D src/routes/.gitkeep
A src/routes/root.ts
D src/routes/.gitkeep => src/routes/.gitkeep +0 -0
A src/routes/root.ts => src/routes/root.ts +11 -0
@@ 0,0 1,11 @@
import {FastifyPluginCallback} from "fastify";

const plugin: FastifyPluginCallback = (fastify, opts, next): void => {
    fastify.get("/", async(request, reply) => {
        reply.type('application/json').send({"status": "ok"});
    });
    
    next();
}

export default plugin;
\ No newline at end of file