Skip to content

Commit 82088e6

Browse files
committed
pre-heroku fix 15
1 parent 0cb231d commit 82088e6

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

api/todosApi.js

+2-3
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,12 @@
22
import fetch from 'isomorphic-unfetch'
33
import { getTokenFromLocalStorage } from '../utils/auth'
44

5-
const api = 'http://localhost:3001'
6-
// const api = 'https://nameless-scrubland-28835.herokuapp.com'
5+
// const api = 'http://localhost:3001'
6+
const api = 'https://nameless-scrubland-28835.herokuapp.com'
77

88
class TodosApi {
99

1010
static addTodo (todo) {
11-
console.log(todo)
1211
// since this always happens on the server I can just get the jwt from localhost
1312
const token = getTokenFromLocalStorage();
1413
return new Promise((resolve, reject) => {

0 commit comments

Comments
 (0)