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

//# sourceMappingURL=delete.js.map