5
0
mirror of https://github.com/cwinfo/matterbridge.git synced 2024-12-29 05:45:41 +00:00
matterbridge/vendor/github.com/labstack/echo/cookbook/google-app-engine/app-engine.go

18 lines
371 B
Go
Raw Normal View History

2017-02-18 22:00:46 +00:00
// +build appengine
package main
import (
"net/http"
"github.com/labstack/echo"
)
func createMux() *echo.Echo {
e := echo.New()
// note: we don't need to provide the middleware or static handlers, that's taken care of by the platform
// app engine has it's own "main" wrapper - we just need to hook echo into the default handler
http.Handle("/", e)
return e
}