Rest Api Read Data From Replica DB

Hi,
I have follow this document
Setup read operations from slave/secondary mysql system

to setup separate read and write operation to my frappe site. I success config it and test read data from frappe desk is working good, data sent to replica db when have any change>
I verify read data from replica db by enable general_log ON in slave db server. Every thing is good,

But my problem is when I use rest api to read data ruing api/method/resources or any custom api method still read from master/primary db.

How I make my api call read data from read only db?
Thanks in advance,
Pheakdey