aboutsummaryrefslogtreecommitdiff
path: root/api/api.go
diff options
context:
space:
mode:
authorRyan Mehri <[email protected]>2020-05-09 16:57:23 -0600
committerRyan Mehri <[email protected]>2020-05-09 16:57:23 -0600
commitd81c5ce33f439ec57d2835e140d43d84b1a273ad (patch)
tree170afa7f9e2b2672269b0acc6508ebe36b5e36f4 /api/api.go
parentMerge branch 'master' into api (diff)
downloadctrl-v-d81c5ce33f439ec57d2835e140d43d84b1a273ad.tar.xz
ctrl-v-d81c5ce33f439ec57d2835e140d43d84b1a273ad.zip
Change endpoint name
Diffstat (limited to 'api/api.go')
-rw-r--r--api/api.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/api/api.go b/api/api.go
index e6372e7..c197774 100644
--- a/api/api.go
+++ b/api/api.go
@@ -31,7 +31,7 @@ func Serve(port int) {
r := mux.NewRouter()
r.HandleFunc("/health", healthCheckFunc)
r.HandleFunc("/api", insertFunc).Methods("POST")
- r.HandleFunc("/{hash}", getHashFunc).Methods("GET")
+ r.HandleFunc("/api/{hash}", getHashFunc).Methods("GET")
http.Handle("/", r)