| OLD | NEW |
| (Empty) |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 package main | |
| 6 | |
| 7 import ( | |
| 8 "github.com/GoogleCloudPlatform/go-endpoints/endpoints" | |
| 9 "github.com/luci/luci-go/appengine/apigen_examples/dumb_counter/dumbCoun
ter" | |
| 10 "github.com/luci/luci-go/appengine/ephelper" | |
| 11 "github.com/luci/luci-go/appengine/ephelper/epfrontend" | |
| 12 "google.golang.org/appengine" | |
| 13 ) | |
| 14 | |
| 15 func main() { | |
| 16 epfe := epfrontend.New("/api/", nil) | |
| 17 h := ephelper.Helper{ | |
| 18 Frontend: epfe, | |
| 19 } | |
| 20 h.Register(endpoints.DefaultServer, dumbCounter.Example{}, dumbCounter.S
erviceInfo, dumbCounter.MethodInfoMap) | |
| 21 | |
| 22 endpoints.HandleHTTP() | |
| 23 epfe.HandleHTTP(nil) | |
| 24 appengine.Main() | |
| 25 } | |
| OLD | NEW |