pond: Register app endpoint

This commit is contained in:
Łukasz Magiera 2019-09-20 08:50:10 +02:00
parent 30564ba8b6
commit 0e9e5e1969

View File

@ -134,6 +134,10 @@ var runCmd = &cli.Command{
rpcServer.Register("Pond", a)
http.Handle("/", http.FileServer(http.Dir("lotuspond/front/build")))
http.HandleFunc("/app/", func(w http.ResponseWriter, r *http.Request) {
http.ServeFile(w, r, "lotuspond/front/build/index.html")
})
http.Handle("/rpc/v0", rpcServer)
http.HandleFunc("/logs/", logHandler(a))