Skip to content

Commit dee3289

Browse files
Revert "Switch to new API with UI keys" - tested in prod, will switch back once alarms/dashboards are in place.
This reverts commit 3ca947d.
1 parent 3ca947d commit dee3289

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

geophires/geophires-ui.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -207,8 +207,6 @@ function renderRevenueAndCashflowProfile(resultsData) {
207207

208208
}
209209

210-
let _UI_KEY = 'RONSrTE7Es7iIJ2D9S2Xn3e49vCXV1Sl7FFi3kaU'
211-
212210
function submitForm(oFormElement) {
213211
let parsed_params = JSON.parse(oFormElement.querySelector('textarea[name="geophires_input_parameters"]').value)
214212

@@ -278,7 +276,6 @@ function submitForm(oFormElement) {
278276
}
279277

280278
xhr.open(oFormElement.method, oFormElement.getAttribute("action"))
281-
xhr.setRequestHeader('x-api-key', _UI_KEY);
282279
xhr.send(JSON.stringify({
283280
'geophires_input_parameters': parsed_params,
284281
'output_format': 'json'
@@ -365,8 +362,7 @@ $(document).ready(function () {
365362

366363
if (location.hostname.indexOf('localhost') !== -1) {
367364
const path = 'get-geophires-result'
368-
const url = `https://dev.gtp.scientificweb.services/${path}`
369-
_UI_KEY = 'dQz4mnNwyF68ho47m0biA2Q7mEt5Ub1Q2SV9ezhc'
365+
const url = `https://dev.gt1.scientificweb.services/${path}`
370366
$('form.apiActionForm').attr('action', url)
371367

372368
setVisible($('#json-input-tab'), true)

geophires/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ <h3>
122122
id="geophires_param_form"
123123
method="POST"
124124
class="apiActionForm"
125-
action="https://api.gtp.scientificweb.services/get-geophires-result">
125+
action="https://prod.gt1.scientificweb.services/get-geophires-result">
126126
</form>
127127
</div>
128128
<div class="mui-tabs__pane" id="pane-default-3">
@@ -132,7 +132,7 @@ <h3>
132132
<form
133133
method="POST"
134134
class="apiActionForm"
135-
action="https://api.gtp.scientificweb.services/get-geophires-result"
135+
action="https://prod.gt1.scientificweb.services/get-geophires-result"
136136
onsubmit="return submitForm(this);">
137137
<textarea id="geophires_input_parameters"
138138
name="geophires_input_parameters"

0 commit comments

Comments
 (0)