From e2a6eff6471d2c703b17a10b23a278124a6d57ab Mon Sep 17 00:00:00 2001 From: Danny Pham Date: Thu, 20 Feb 2020 20:44:18 -0800 Subject: [PATCH 1/2] Updated PROD endpoint. --- src/App/App.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/App/App.js b/src/App/App.js index 0d8a528..c449257 100644 --- a/src/App/App.js +++ b/src/App/App.js @@ -9,12 +9,12 @@ import './App.css'; // Backend endpoint to save data. const DEV_POST_URL = 'http://localhost:5000/pastebin/save' -const PROD_POST_URL = 'https://dev.dannyhp.com:8443/pastebin_save' +const PROD_POST_URL = 'https://aws.dannyhp.com/pastebin/save' const POST_URL = PROD_POST_URL // Backend endpoint to load data. const DEV_GET_URL = 'http://localhost:5000/pastebin/load/%s' -const PROD_GET_URL= 'https://dev.dannyhp.com:8443/pastebin_load/%s' +const PROD_GET_URL= 'https://aws.dannyhp.com/pastebin/load/%s' const GET_URL = PROD_GET_URL class App extends Component { From 3b15e25a12606dbcea70d77a213e870464c21ec2 Mon Sep 17 00:00:00 2001 From: Danny Pham Date: Sat, 14 Mar 2020 16:40:57 -0700 Subject: [PATCH 2/2] Removed console logs. --- src/components/Editor.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/components/Editor.js b/src/components/Editor.js index 6dbb04f..50c3dc1 100644 --- a/src/components/Editor.js +++ b/src/components/Editor.js @@ -79,9 +79,7 @@ class Editor extends Component { text: this.state.text, type: this.state.type }).then(response => { - console.log(response) - const status = response.data.status - + const status = response.data.status if(status === 'success') { const post_id = response.data.id this.setState({