Files
fnx_web/main.go

26 lines
500 B
Go
Raw Normal View History

2017-11-10 12:39:55 +01:00
package main
import (
"net/http"
web "fornaxian.com/pixeldrain-web/init"
"github.com/Fornaxian/log"
2017-11-10 12:39:55 +01:00
"github.com/julienschmidt/httprouter"
)
// This is just a launcher for the web server. During testing the app would
// be directly embedded by another Go project. And when deployed it will run
// independently.
func main() {
r := httprouter.New()
web.Init(r, "")
err := http.ListenAndServe(":8081", r)
if err != nil {
log.Error("Can't listen and serve Pixeldrain Web: %v", err)
}
}