How to server WordPress site on express?

I am working on a project through which i will be handling multiple WordPress websites through node and express server. I have an express server setup which has an API which allows client to create, update and customize a WordPress website along other things. after creating or updating (which is done through wp cli) the site is stored in a subfolder named website-name in a folder websites. Everything is working perfectly, except the api returns the url:https://localhost/website-name (Yes, I am testing on localhost and i have also tried amazon ec2 instance. result being the same). This url is supposed to open the wordpress site but it doesn’t.

I have also tried using http-proxy but not sure what’s the right way to use it. Also, I have tried keeping the files in static but it too shows the error: Can’t get / url. Any idea, how to serve the wordpress websites using the node and express server?

There are multiple websites, for example:

/websites/website_a_unique_identifier

/websites/website_b_unique_identifier

and inside All the wordpress files.