How do I get POST data from curl_setopt () in config.php

Hey there :smile:
I have a problem and Iā€™m stuck in it. I receive POST data for my project:

curl_setopt ($ ch, CURLOPT_POSTFIELDS, http_build_query (array ('data' => $data)));

At K2 I wrote in the config:

if(get('data')){ //code }

to get the POST data and it works.
How do i do that in K3?

Thanks for your answers :smiley: