Merge pull request #218 from filecoin-project/fix/pond-app-index

pond: Register app endpoint
This commit is contained in:
Łukasz Magiera 2019-09-20 14:32:23 +02:00 committed by GitHub
commit 9e2d094811
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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))