Skip to content

Commit

Permalink
cmd: attach prune command (#517)
Browse files Browse the repository at this point in the history
* cmd: attach prune command

* daemon: fix /prune method
  • Loading branch information
bobheadxi authored Jan 14, 2019
1 parent 1fe580a commit 5bda904
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions cmd/host/host.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ Run 'inertia [remote] init' to gather this information.`,
AttachEnvCmd(host)
host.attachSendFileCmd()
host.attachSSHCmd()
host.attachPruneCmd()
host.attachTokenCmd()
host.attachUpgradeCmd()
host.attachUninstallCmd()
Expand Down
2 changes: 1 addition & 1 deletion daemon/inertiad/daemon/daemon.go
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ func (s *Server) Run(host, port string) error {
handler.AttachAdminRestrictedHandlerFunc("/env",
s.envHandler, http.MethodGet, http.MethodPost)
handler.AttachAdminRestrictedHandlerFunc("/prune",
s.pruneHandler, http.MethodGet)
s.pruneHandler, http.MethodPost)
handler.AttachAdminRestrictedHandlerFunc("/token",
tokenHandler, http.MethodGet)

Expand Down

0 comments on commit 5bda904

Please sign in to comment.