Skip to content

Commit

Permalink
changed endpoints to https
Browse files Browse the repository at this point in the history
  • Loading branch information
ronsbons committed Mar 12, 2021
1 parent 4b6538c commit 935e315
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "0.1.0",
"private": true,
"dependencies": {
"axios": "^0.18.0",
"axios": ">=0.21.1",
"bulma": "^0.7.4",
"jsonwebtoken": "^8.5.1",
"node-sass": "^4.11.0",
Expand Down
2 changes: 1 addition & 1 deletion src/models/CountryModel.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import axios from 'axios';

// const endPoint = 'http://localhost:3001/country';
const endPoint = 'http://sheltered-shore-25414.herokuapp.com/country';
const endPoint = 'https://sheltered-shore-25414.herokuapp.com/country';

class CountryModel {
static getAllCountries() {
Expand Down
2 changes: 1 addition & 1 deletion src/models/ReviewModel.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import axios from 'axios';

// const endPoint = 'http://localhost:3001/reviews';
const endPoint = 'http://sheltered-shore-25414.herokuapp.com/reviews';
const endPoint = 'https://sheltered-shore-25414.herokuapp.com/reviews';

class ReviewModel {
static getReviewsByCountry(countryId) {
Expand Down
2 changes: 1 addition & 1 deletion src/models/TourModel.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import axios from 'axios';

// const endPoint = 'http://localhost:3001/tours';
const endPoint = 'http://sheltered-shore-25414.herokuapp.com/tours';
const endPoint = 'https://sheltered-shore-25414.herokuapp.com/tours';

class TourModel {
static getToursByCountry(countryId) {
Expand Down
2 changes: 1 addition & 1 deletion src/models/UserModel.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import axios from 'axios';

// const endPoint = 'http://localhost:3001/user';
const endPoint = 'http://sheltered-shore-25414.herokuapp.com/user';
const endPoint = 'https://sheltered-shore-25414.herokuapp.com/user';

class UserModel {
static signUp(username, email, password) {
Expand Down

0 comments on commit 935e315

Please sign in to comment.