"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.AddressController = void 0;
class AddressController {
    getAddressByAddressUseCase;
    constructor(getAddressByAddressUseCase) {
        this.getAddressByAddressUseCase = getAddressByAddressUseCase;
    }
    getByAddress = async (req, res, next) => {
        try {
            const address = await this.getAddressByAddressUseCase.execute(req.params.address);
            res.status(200).json({ success: true, data: address });
        }
        catch (error) {
            next(error);
        }
    };
}
exports.AddressController = AddressController;
//# sourceMappingURL=address.controller.js.map