Skip to content

Commit

Permalink
Connect directly to api in gitpod
Browse files Browse the repository at this point in the history
  • Loading branch information
SandraBergstrom committed Jun 27, 2023
1 parent 176da29 commit 9ff12ea
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/api/axiosDefaults.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import axios from "axios";

axios.defaults.baseURL = "https://travel-tickr-api-e57198555b47.herokuapp.com/"; //url to api
// axios.defaults.baseURL = 'https://8000-sandrabergs-traveltickr-f0an5wfcl6d.ws-eu100.gitpod.io/'
axios.defaults.headers.post["Content-Type"] = "multipart/form-data"; // multipart necessary since we have both text and images
axios.defaults.withCredentials = true;

Expand Down

0 comments on commit 9ff12ea

Please sign in to comment.