Browse Source

Update API url in postToAPI

Vijayakrishnan Krishnan 5 years ago
parent
commit
112eed7786
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/Http/Controllers/AppSessionController.php

+ 1 - 1
app/Http/Controllers/AppSessionController.php

@@ -64,7 +64,7 @@ class AppSessionController extends Controller
             $data['uid'] = $fields['_uid'];
         }
 
-        $url = 'http://localhost:3000' . $request->input('_api');
+        $url = env('BACKEND_URL', 'http://localhost:8080') . $request->input('_api');
         // dd($url);
 
         $response = Http::asForm()