diff options
| author | Ryan Mehri <[email protected]> | 2020-05-09 16:50:38 -0600 |
|---|---|---|
| committer | Ryan Mehri <[email protected]> | 2020-05-09 16:50:38 -0600 |
| commit | b80d38e7a5173fd2126ab01b8412fa871cb43dca (patch) | |
| tree | 1ccd0aeb4a49e5878ce2ea1496e09ab9440c9500 /api/api.go | |
| parent | add dockerfile and makefile (diff) | |
| download | ctrl-v-b80d38e7a5173fd2126ab01b8412fa871cb43dca.tar.xz ctrl-v-b80d38e7a5173fd2126ab01b8412fa871cb43dca.zip | |
Add get hash endpoint
Diffstat (limited to 'api/api.go')
| -rw-r--r-- | api/api.go | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -31,6 +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") http.Handle("/", r) |