"use strict";
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (this && this.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var __importStar = (this && this.__importStar) || function (mod) {
    if (mod && mod.__esModule) return mod;
    var result = {};
    if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
    result["default"] = mod;
    return result;
};
var ExpressTestServer_1;
Object.defineProperty(exports, "__esModule", { value: true });
"use strict";
process.env.test = 'true';
const server_1 = require("@methodus/server");
const path = __importStar(require("path"));
const server_2 = require("@methodus/server");
const controllers_1 = require("../controllers/");
const proxy_controller_1 = require("../controllers/proxy.controller");
let ExpressTestServer = ExpressTestServer_1 = class ExpressTestServer extends server_1.ConfiguredServer {
    constructor() {
        super(ExpressTestServer_1);
    }
};
ExpressTestServer = ExpressTestServer_1 = __decorate([
    server_1.ServerConfiguration(server_2.BuiltInServers.Express, { port: process.env.PORT || 8020 }),
    server_1.PluginConfiguration(path.join(__dirname, '../../index')),
    server_1.RouterConfiguration(controllers_1.TestController, "express" /* Express */),
    server_1.RouterConfiguration(proxy_controller_1.ProxiedController, "express" /* Express */),
    server_1.ClientConfiguration(controllers_1.TestTarget, server_2.BuiltInTransports.Http, 'http://localhost:8020'),
    __metadata("design:paramtypes", [])
], ExpressTestServer);
exports.ExpressTestServer = ExpressTestServer;
//# sourceMappingURL=express.server.js.map