import pjson from "./../../../package.json" ; import { rootSchema } from "./../schemas" ; import { NextFunction } from "express" ; import { FastifyInstance , FastifyRequest , FastifyReply , RegisterOptions } from "fastify" ; import { IncomingMessage , ServerResponse , Server } from "http" ; const SCHEMES = rootSchema ; const rootRouter = ( instance , options , next ) => { instance . get ( "/" , SCHEMES . ROOT , ( req , res ) => { res . send ( { version : pjson . version , } ) ; } ) ; next ( ) ; } ; export default rootRouter ;