Skip to content

Commit

Permalink
Hosting the API on AWS EC2
Browse files Browse the repository at this point in the history
Refactored the JavaScript example with the new AWS URL
Refactored the Golang example with the new AWS URL
Refactored the Python example with the new AWS URL
  • Loading branch information
Kimani Kelly authored and Kimani Kelly committed Dec 14, 2022
1 parent fa5797e commit 92ab16e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/golang.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
func main() {
res, err := http.Get("https://kimanikelly-contractapi.herokuapp.com/endpoint")
res, err := http.Get("http://ec2-34-203-42-249.compute-1.amazonaws.com/endpoint")
if err != nil {
fmt.Println(err)
Expand Down
2 changes: 1 addition & 1 deletion docs/javascript.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
const axios = require("axios");
axios
.get("https://kimanikelly-contractapi.herokuapp.com/endpoint")
.get("http://ec2-34-203-42-249.compute-1.amazonaws.com/endpoint")
.then((res) => {
console.log(res);
})
Expand Down
2 changes: 1 addition & 1 deletion docs/python.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import requests
contract = requests.get(
"https://kimanikelly-contractapi.herokuapp.com/endpoint").json()
"http://ec2-34-203-42-249.compute-1.amazonaws.com/endpoint").json()
print(contract)
```

0 comments on commit 92ab16e

Please sign in to comment.