forked from jshiffer/matterbridge
25 lines
349 B
Go
25 lines
349 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.Static("/", "public")
|
||
|
|
||
|
return e
|
||
|
}
|
||
|
|
||
|
func main() {
|
||
|
e.Logger.Fatal(e.Start(":8080"))
|
||
|
}
|