Skip to content

Commit

Permalink
feat: update hostui (bittorrent#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-tron authored Dec 17, 2021
1 parent 12694f4 commit 8fbb7c2
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
1 change: 1 addition & 0 deletions cmd/btfs/daemon.go
Original file line number Diff line number Diff line change
Expand Up @@ -745,6 +745,7 @@ func serveHTTPApi(req *cmds.Request, cctx *oldcmds.Context) (<-chan error, error
corehttp.CheckVersionOption(),
corehttp.CommandsOption(*cctx),
corehttp.WebUIOption,
corehttp.DashboardOption,
corehttp.HostUIOption,
gatewayOpt,
corehttp.VersionOption(),
Expand Down
1 change: 1 addition & 0 deletions cmd/ipfswatch/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ func run(ipfsPath, watchPath string) error {
var opts = []corehttp.ServeOption{
corehttp.GatewayOption(true, "/btfs", "/btns"),
corehttp.WebUIOption,
corehttp.DashboardOption,
corehttp.HostUIOption,
corehttp.CommandsOption(cmdCtx(node, ipfsPath)),
}
Expand Down
5 changes: 0 additions & 5 deletions core/corehttp/hostui.go

This file was deleted.

2 changes: 2 additions & 0 deletions core/corehttp/webui.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,6 @@ var WebUIPaths = []string{
WebUIPath,
}

var HostUIOption = RedirectOption("hostui", WebUIPath)
var WebUIOption = RedirectOption("webui", WebUIPath)
var DashboardOption = RedirectOption("dashboard", WebUIPath)

0 comments on commit 8fbb7c2

Please sign in to comment.