diff options
author | terminaldweller <thabogre@gmail.com> | 2022-11-15 06:33:10 +0000 |
---|---|---|
committer | terminaldweller <thabogre@gmail.com> | 2022-11-15 06:33:10 +0000 |
commit | 14c8da596041a1f4c73b7065acfd4f185f35ca68 (patch) | |
tree | e2956e27cb910d771261e7774496f0f54cd763ce /arbiter | |
parent | added coincap endpoint (diff) | |
download | hived-14c8da596041a1f4c73b7065acfd4f185f35ca68.tar.gz hived-14c8da596041a1f4c73b7065acfd4f185f35ca68.zip |
update
Diffstat (limited to 'arbiter')
-rw-r--r-- | arbiter/arbiter.go | 4 | ||||
-rwxr-xr-x | arbiter/tests.sh | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/arbiter/arbiter.go b/arbiter/arbiter.go index 7390cfa..8fce2be 100644 --- a/arbiter/arbiter.go +++ b/arbiter/arbiter.go @@ -363,8 +363,8 @@ func main() { setupLogging() var handlerFuncs = []HttpHandler{ - {name: "/arb/gecko", function: arbHandler}, - {name: "/arb/coincap", function: coincapHandler}, + {name: "/crypto/v1/arb/gecko", function: arbHandler}, + {name: "/crypto/v1/arb/coincap", function: coincapHandler}, } startServer(gracefulWait, handlerFuncs, SERVER_DEPLOYMENT_TYPE, *flagPort) diff --git a/arbiter/tests.sh b/arbiter/tests.sh index ece5801..be923f3 100755 --- a/arbiter/tests.sh +++ b/arbiter/tests.sh @@ -1,4 +1,4 @@ #!/usr/bin/env sh -curl -k -X GET "https://localhost:8009/arb/gecko?name=ethereum&unit=usd" -curl -k -X GET "https://localhost:8009/arb/coincap?name=ethereum" +curl -k -X GET "https://localhost:8009/crypto/v1/arb/gecko?name=ethereum&unit=usd" +curl -k -X GET "https://localhost:8009/crypto/v1/arb/coincap?name=ethereum" |