Open alaksandarjesus opened 8 years ago
You need to to use either a middleman proxy while in development, or in production you could use nginx as a reverse proxy. So nginx will display your static files and when you go to /api it will go to laravel. You should send/receive data via json. Its bit different when using Sinatra or rails with angularjs. like how i do it(many ways to setup) is i have nginx pointed to my static angular app and nginx forwards all connections to /api// to my rails app via to rails server on port 3000.
Hi...
I developed my application and now while developing the backend, i uploaded my laravel to src/api folder, and the restangular is not detecting my localhost:3000
How can i get it worked in such a way that localhost:3000/api will work.