import httpStatus from 'http-status';
import findOne from '../operations/findOne.js';
export const findByIDHandler = async (req)=>{
    const result = await findOne({
        key: req.routeParams?.key,
        req,
        user: req.user
    });
    return Response.json({
        ...result ? result : {
            message: req.t('general:notFound'),
            value: null
        }
    }, {
        status: httpStatus.OK
    });
};

//# sourceMappingURL=findOne.js.map