Skip to content

Commit

Permalink
Merge pull request #5 from QuanticSchool/working
Browse files Browse the repository at this point in the history
Working
  • Loading branch information
John-J-Riehl authored May 17, 2022
2 parents 0c4b95b + ef05618 commit e25c622
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
7 changes: 4 additions & 3 deletions api-gateway/application.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ def get_required_entry(dictionary, key, exception_text):

try:
for api in apis:
print(api)
api_name = get_required_entry(
api,
"api_name",
Expand Down Expand Up @@ -248,9 +249,9 @@ def get_required_entry(dictionary, key, exception_text):
view_func=lambda: err_str
)

if cors_origins:
CORS(application, origins=cors_origins)

# run the app.
if __name__ == "__main__":
if cors_origins:
CORS(application, origins=cors_origins)

application.run()
2 changes: 1 addition & 1 deletion client/src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import gatewayUrl from './gateway';
import Modal from './modal';

const healthCheck = () => {
fetch(gatewayUrl + '/im-health-check')
fetch(gatewayUrl + '/health-check')
.then(response => response.json())
.then(data => alert("The server is alive and says " + data))
}
Expand Down
2 changes: 1 addition & 1 deletion client/src/gateway.js
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
const gatewayUrl = 'https://ue1bwgb12c.execute-api.us-east-1.amazonaws.com/';
const gatewayUrl = undefined;
export default gatewayUrl;

0 comments on commit e25c622

Please sign in to comment.