1
0
mirror of https://github.com/labstack/echo.git synced 2025-02-05 13:15:02 +02:00
echo/recipes/google-app-engine/app-standalone.go
Vishal Rana 5587974933 Added GAE recipe
Signed-off-by: Vishal Rana <vr@labstack.com>
2015-10-07 17:17:11 -07:00

26 lines
367 B
Go

// +build !appengine,!appenginevm
package main
import (
"github.com/labstack/echo"
"github.com/labstack/echo/middleware"
)
func createMux() *echo.Echo {
e := echo.New()
e.Use(middleware.Recover())
e.Use(middleware.Logger())
e.Use(middleware.Gzip())
e.Index("public/index.html")
e.Static("/public", "public")
return e
}
func main() {
e.Run(":8080")
}