import { listTaskRoutes } from "./list-tasks.js";
import { addTaskRoutes } from "./add-task.js";
import { getTaskRoutes } from "./get-task.js";
import { setTaskRoutes } from "./set-task.js";
import { patchTaskRoutes } from "./patch-task.js";
export async function taskRoutes(fastify) {
    async function routes(fastify) {
        fastify.register(listTaskRoutes);
        fastify.register(addTaskRoutes);
        fastify.register(getTaskRoutes);
        fastify.register(setTaskRoutes);
        fastify.register(patchTaskRoutes);
    }
    fastify.register(routes, {
        prefix: "/tasks",
    });
}
//# sourceMappingURL=index.js.map