// It appears vercel serverless requires strong references
// for inclusion in the file system
import "../references.js";
import { viewRoutes } from "../view/index.js";
import { backgroundRoutes } from "./background.js";
import { systemLogRoutes } from "./system-log/index.js";
import { authenticationRoutes } from "./auth/index.js";
import { fileRoutes } from "./file/index.js";
import { userCredentialRoutes } from "./user-credential/index.js";
import { changeRoutes } from "./change/index.js";
import { brandingRoutes } from "./branding/index.js";
export { systemLogRoutes, fileRoutes, userCredentialRoutes, changeRoutes, brandingRoutes, authenticationRoutes, backgroundRoutes,
// viewRoutes, // Already exported elsewhere
 };
export async function routes(fastify) {
    async function apiRoutes(fastify) {
        fastify.register(systemLogRoutes);
        fastify.register(fileRoutes);
        fastify.register(userCredentialRoutes);
        fastify.register(changeRoutes);
        fastify.register(brandingRoutes);
    }
    fastify.register(apiRoutes, {
        prefix: "/api/version/1"
    });
    fastify.register(authenticationRoutes, {
        prefix: "/api"
    });
    fastify.register(backgroundRoutes, {
        prefix: "/api"
    });
    fastify.register(viewRoutes);
}
//# sourceMappingURL=routes.js.map