diff options
Diffstat (limited to 'handler.go')
-rw-r--r-- | handler.go | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -112,9 +112,16 @@ func unpackRequest(r *http.Request, unpack interface{}) error { return nil } -// getEntries provides with a list of entries from the Trillian backend +// getEntries provides a list of entries from the Trillian backend func getEntries(ctx context.Context, i *instance, w http.ResponseWriter, r *http.Request) (int, error) { glog.Info("in getEntries") + + var request GetEntriesRequest + if err := request.Unpack(r); err != nil { + return http.StatusBadRequest, err + } + glog.Infof("valid request: %v", request) + return http.StatusOK, nil // TODO } |