I have a locally created laravel RESTFUL API and I deployed it on my ec2 ubuntu server using git.
I\'ve set it like my main website.. /var/www/api.myapp.com/pub
/var/www/api.myapp.com/pub