We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0cb231d commit 82088e6Copy full SHA for 82088e6
api/todosApi.js
@@ -2,13 +2,12 @@
2
import fetch from 'isomorphic-unfetch'
3
import { getTokenFromLocalStorage } from '../utils/auth'
4
5
-const api = 'http://localhost:3001'
6
-// const api = 'https://nameless-scrubland-28835.herokuapp.com'
+// const api = 'http://localhost:3001'
+const api = 'https://nameless-scrubland-28835.herokuapp.com'
7
8
class TodosApi {
9
10
static addTodo (todo) {
11
- console.log(todo)
12
// since this always happens on the server I can just get the jwt from localhost
13
const token = getTokenFromLocalStorage();
14
return new Promise((resolve, reject) => {
0 commit comments