how to configure flask rest api with php in virtualmin server

Hi,

my apologizes if it is a basic question, since i am not much familiar with customization of virtualmin server, I am asking this question…

I am trying to use Flask for rest Api and PHP for my default website…

I did some research and found lot solution in stock overflow… but virtualmin environment looks slightly different for me and not understanding where to start and achieve it…

in short:
if i type www.example.com then normal php website should load. if i type www.example.com/services/api then flask api should run and give result…

appreciated for quick response…

Many thanks…

Team,

Awaiting for respose…