"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const express_1 = require("express");
const discovery_1 = __importDefault(require("./discovery"));
const config_1 = __importDefault(require("./config"));
const invocation_1 = __importDefault(require("./invocation"));
const router = (0, express_1.Router)();
// Mount in original route registration order:
// 1. Discovery: /workers, /discovered, /cron/status
router.use(discovery_1.default);
// 2. Config: /config, /:type/config (GET, PUT, DELETE)
router.use(config_1.default);
// 3. Invocation & observation: /:type/invoke, /:workflowId/*
router.use(invocation_1.default);
exports.default = router;
