diff options
| -rw-r--r-- | .gitignore | 3 | ||||
| -rw-r--r-- | api/api.go | 2 | ||||
| -rw-r--r-- | api/routes.go | 1 |
3 files changed, 3 insertions, 3 deletions
@@ -1,2 +1,3 @@ .env -.idea
\ No newline at end of file +.idea +go.sum
\ No newline at end of file @@ -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" |