summaryrefslogtreecommitdiffstats
path: root/vendor/github.com/labstack/echo/cookbook/google-app-engine/app-standalone.go
blob: c3b44dc0fc706bbf6964758b40eed0fc4d333127 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// +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"))
}