"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.default = routes;
const config_routes_1 = __importDefault(require("./config.routes"));
const dashboard_routes_1 = __importDefault(require("./dashboard.routes"));
const deps_route_1 = __importDefault(require("./deps.route"));
const fs_routes_1 = __importDefault(require("./fs.routes"));
const project_routes_1 = __importDefault(require("./project.routes"));
const rss_routes_1 = __importDefault(require("./rss.routes"));
const sprite_routes_1 = require("./sprite.routes");
const system_routes_1 = __importDefault(require("./system.routes"));
const task_routes_1 = __importDefault(require("./task.routes"));
const api_client_1 = require("./api-client");
const nginx_routes_1 = require("./nginx.routes");
const svn_routes_1 = __importDefault(require("./svn.routes"));
const sprite_browse_routes_1 = __importDefault(require("./sprite-browse.routes"));
const static_files_routes_1 = __importDefault(require("./static-files.routes"));
const hub_routes_1 = __importDefault(require("./hub.routes"));
const node_version_routes_1 = __importDefault(require("./node-version.routes"));
async function routes(fastify) {
    await fastify.register(system_routes_1.default);
    await fastify.register(task_routes_1.default, { prefix: '/api/tasks' });
    await fastify.register(project_routes_1.default, { prefix: '/api/projects' });
    await fastify.register(deps_route_1.default, { prefix: '/api/deps' });
    await fastify.register(fs_routes_1.default, { prefix: '/api/fs' });
    await fastify.register(config_routes_1.default, { prefix: '/api/config' });
    await fastify.register(dashboard_routes_1.default, { prefix: '/api/dashboard' });
    await fastify.register(rss_routes_1.default, { prefix: '/api/rss' });
    await fastify.register(sprite_routes_1.spriteRoutes, { prefix: '/api/sprite' });
    await fastify.register(svn_routes_1.default, { prefix: '/api/svn' });
    await fastify.register(sprite_browse_routes_1.default, { prefix: '/api/sprite/browse' });
    await fastify.register(static_files_routes_1.default, { prefix: '/api/static' });
    await fastify.register(hub_routes_1.default, { prefix: '/api/hub' });
    await fastify.register(api_client_1.apiClientEnvsRoutes, { prefix: '/api/client/envs' });
    await fastify.register(api_client_1.apiClientRequestsRoutes, { prefix: '/api/client/requests' });
    await fastify.register(api_client_1.apiClientHistoryRoutes, { prefix: '/api/client/history' });
    await fastify.register(api_client_1.apiClientSendRoutes, { prefix: '/api/client/send' });
    await fastify.register(api_client_1.apiClientCollectionsRoutes, { prefix: '/api/client/collections' });
    await fastify.register(api_client_1.apiClientHubTokenRoutes, { prefix: '/api/client/hub-token' });
    await fastify.register(nginx_routes_1.nginxRoutes, { prefix: '/api/nginx' });
    await fastify.register(node_version_routes_1.default, { prefix: '/api/node-version' });
}
