"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.createAddressRoutes = void 0;
const express_1 = require("express");
const validation_middleware_1 = require("../middleware/validation.middleware");
const dto_1 = require("../../application/dto");
/**
 * Address routes mounted under `/api/v1`.
 *
 * Routes:
 *  - GET /addresses/:address  Get an address record by its blockchain address.
 *                               Params: { address: string }
 *                               Response: { id, address, type, walletId }
 */
const createAddressRoutes = (controller) => {
    const router = (0, express_1.Router)();
    router.get('/addresses/:address', (0, validation_middleware_1.validateRequest)({ params: dto_1.addressParamSchema }), controller.getByAddress);
    return router;
};
exports.createAddressRoutes = createAddressRoutes;
//# sourceMappingURL=address.routes.js.map