"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.RestController = void 0;
const di_1 = require("@n8n/di");
const controller_registry_metadata_1 = require("./controller-registry-metadata");
const RestController = (basePath = '/') => (target) => {
    const metadata = di_1.Container.get(controller_registry_metadata_1.ControllerRegistryMetadata).getControllerMetadata(target);
    metadata.basePath = basePath;
    return (0, di_1.Service)()(target);
};
exports.RestController = RestController;
//# sourceMappingURL=rest-controller.js.map