Move /api to root level
Read env from process first
Use app url to get API path