Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

Hi everyone,
I’ve just deployed a Laravel project on App Platform. At first I defined the HTTP routes with “/api”, but then I modified the value and now the HTTP route’s values is “/”. The GET requests are working fine, but I am unable to make POST requests, I am getting 405 - "The GET method is not supported for this route. Supported methods: POST.
In my APP SPECS/services/ the routes are defined like this routes:
When checking the runtime logs I see that there was actually a GET request made
DOCUMENT_ROOT changed to 'public/'
[2022-11-28 19:31:15] Assuming 512MB of RAM
[2022-11-28 19:31:16] PHP memory_limit is 128M Bytes
[2022-11-28 19:31:16] Starting php-fpm with 4 workers...
[2022-11-28 19:31:17] Starting httpd...
[2022-11-28 19:31:18] Application ready for connections on port 8080.
[2022-11-28 19:31:48] 10.244.20.5 - - [28/Nov/2022:19:31:47 +0000] "GET /api/ceva HTTP/1.1" 405 93 "http://cezagora-api-ztafo.ondigitalocean.app/api/ceva" "PostmanRuntime/7.29.2
Any idea how I can fix this?
Thanks
a6309a057c3f4cb38fb2e7feb67236
KFSys
ef1ed44cc2154be3bcbb2d727878f8
Devs Neonetworks
1e6b823ea20d4cb189a34a922f5588
Telmo Valverde
erik-jan martens
Henry Mui
anthonycarreon
garantieheld
Marin