diff options
| author | Ryan Mehri <[email protected]> | 2020-05-09 16:57:23 -0600 |
|---|---|---|
| committer | Ryan Mehri <[email protected]> | 2020-05-09 16:57:23 -0600 |
| commit | d81c5ce33f439ec57d2835e140d43d84b1a273ad (patch) | |
| tree | 170afa7f9e2b2672269b0acc6508ebe36b5e36f4 /api | |
| parent | Merge branch 'master' into api (diff) | |
| download | ctrl-v-d81c5ce33f439ec57d2835e140d43d84b1a273ad.tar.xz ctrl-v-d81c5ce33f439ec57d2835e140d43d84b1a273ad.zip | |
Change endpoint name
Diffstat (limited to 'api')
| -rw-r--r-- | api/api.go | 2 | ||||
| -rw-r--r-- | api/routes.go | 1 |
2 files changed, 1 insertions, 2 deletions
@@ -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) diff --git a/api/routes.go b/api/routes.go index ee166c2..a5d0357 100644 --- a/api/routes.go +++ b/api/routes.go @@ -1,6 +1,5 @@ package api -import "C" import ( "encoding/json" "fmt" |