Skip to content

Commit

Permalink
Complete adding go1.11 support to splice
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 294504741
  • Loading branch information
alexherrero authored and copybara-github committed Feb 11, 2020
1 parent c8296a8 commit c11f9cc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
7 changes: 3 additions & 4 deletions appengine/appengine.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,18 +21,17 @@ limitations under the License.
package main

import (
http "net/http"
"net/http"

"google.golang.org/appengine"
"github.com/google/splice/appengine/endpoints"
)

func init() {
func main() {
http.Handle("/request", &endpoints.AttendedRequestHandler{})
http.Handle("/result", endpoints.ResultHandler(endpoints.ProcessResult))
http.Handle("/request-unattended", &endpoints.UnattendedRequestHandler{})
http.Handle("/result-unattended", endpoints.ResultHandler(endpoints.ProcessResult))
}

func main() {
appengine.Main()
}
1 change: 0 additions & 1 deletion appengine/endpoints/request.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,6 @@ func requestResponse(ctx context.Context, w http.ResponseWriter, r *http.Request
// ProcessRequest takes a models.Request that is provided by the client,
// and validates it. A response is provided using models.Response.
func ProcessRequest(ctx context.Context, w http.ResponseWriter, r *http.Request, checks []basic.Validator) models.Response {

request, code, err := unmarshalRequest(r)
if err != nil {
return models.Response{
Expand Down

0 comments on commit c11f9cc

Please sign in to comment.