const require_logger_index = require('../logger/index.cjs');

//#region src/middlewares/request.middleware.ts
const logAPIRequestURL = (req, res, next) => {
	const queryDetails = {
		params: req.params,
		query: req.query,
		body: req.body,
		locals: res.locals
	};
	require_logger_index.logger.info(`API Request - ${req.method} - ${req.originalUrl} - ${JSON.stringify(queryDetails, null, 2)}`);
	next();
};

//#endregion
exports.logAPIRequestURL = logAPIRequestURL;
//# sourceMappingURL=request.middleware.cjs.map