summaryrefslogtreecommitdiffstats
path: root/vendor/github.com/labstack/echo/cookbook/google-app-engine/app-engine.go
blob: 0c1db087c85c2fb744fb14f33ad56197536e59fc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// +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
}