Skip to content

Instantly share code, notes, and snippets.

@xxmatyuk
Created November 30, 2019 17:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xxmatyuk/3755cd55fd3efd5541c65de5f0f435dd to your computer and use it in GitHub Desktop.
Save xxmatyuk/3755cd55fd3efd5541c65de5f0f435dd to your computer and use it in GitHub Desktop.
package main
import (
"net/http"
"github.com/gorilla/mux"
"google.golang.org/appengine"
service "github.com/xxmatyuk/example-gae-go111/example_app"
)
func main() {
// Router
r := mux.NewRouter()
// Service
s := service.NewService()
// Handlers
r.HandleFunc("/_ah/warmup", s.WarmupRequestHandler).Methods("GET")
r.HandleFunc("/test-admin", s.WarmupRequestHandler).Methods("GET")
r.HandleFunc("/test-no-admin", s.WarmupRequestHandler).Methods("GET")
http.Handle("/", r)
appengine.Main()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment