5
0
mirror of https://github.com/cwinfo/matterbridge.git synced 2024-11-27 08:51:36 +00:00
matterbridge/vendor/github.com/labstack/echo/cookbook/google-app-engine/app-standalone.go

25 lines
349 B
Go
Raw Normal View History

2017-02-18 22:00:46 +00:00
// +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.Static("/", "public")
return e
}
func main() {
e.Logger.Fatal(e.Start(":8080"))
}