How do I serve some requests from a different PHP front controller?
Platform.sh DevRel
Most of the requests for my app are served from public/index.php, but I want to serve requests to /api from public/sites/api/api.php. Is this possible on platform.sh?
0
Comments
Yes! In your
.platform.app.yaml, you’ll want to declare an additional location block for/api, and include the directory that it should reference in therootkey and the front controller for the site in theindexkey:Please sign in to leave a comment.