mirror of
https://github.com/labstack/echo.git
synced 2024-12-26 20:54:00 +02:00
5587974933
Signed-off-by: Vishal Rana <vr@labstack.com>
19 lines
372 B
Go
19 lines
372 B
Go
// +build appengine
|
|
|
|
package main
|
|
|
|
import (
|
|
"github.com/labstack/echo"
|
|
"net/http"
|
|
)
|
|
|
|
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
|
|
}
|