import { listChangeRoutes } from "./list-changes.js";
import { addChangeRoutes } from "./add-change.js";
import { getChangeRoutes } from "./get-change.js";
import { setChangeRoutes } from "./set-change.js";
import { patchChangeRoutes } from "./patch-change.js";
export async function changeRoutes(fastify) {
    async function routes(fastify) {
        fastify.register(listChangeRoutes);
        fastify.register(addChangeRoutes);
        fastify.register(getChangeRoutes);
        fastify.register(setChangeRoutes);
        fastify.register(patchChangeRoutes);
    }
    fastify.register(routes, {
        prefix: "/changes/:changeType/:targetType",
    });
}
//# sourceMappingURL=index.js.map