import { FastifyInstance } from "fastify" ; import userController from "./controller/userController" ; import indexController from "./controller/indexController" ; export default async function router ( fastify ) { fastify . register ( userController , { prefix : "/api/v1/user" } ) ; fastify . register ( indexController , { prefix : "/" } ) ; }