diff --git a/cmd/host/host.go b/cmd/host/host.go index d79c9a2b..c33ec127 100644 --- a/cmd/host/host.go +++ b/cmd/host/host.go @@ -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() diff --git a/daemon/inertiad/daemon/daemon.go b/daemon/inertiad/daemon/daemon.go index 784ee5b3..48dc58e0 100644 --- a/daemon/inertiad/daemon/daemon.go +++ b/daemon/inertiad/daemon/daemon.go @@ -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)