Skip to content

Commit

Permalink
reorder commands (#31)
Browse files Browse the repository at this point in the history
  • Loading branch information
buglloc authored Jan 1, 2024
1 parent cff5749 commit 2a3f212
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions main/commands.cc
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,12 @@ bool Commands::Handle(const SSH::SessionInfo& sessInfo, std::string_view cmdName
.Help = "Returns BoundBoxESP status",
.Handle = HandleStatus,
},
{
.Name = "/restart",
.UsedAllowed = false,
.Help = R"(Restart BoundBoxESP in req["delay_ms"])",
.Handle = HandleRestart
},
#if CONFIG_DUMPABLE_SECRETS
{
.Name = "/secrets/get",
Expand All @@ -237,12 +243,6 @@ bool Commands::Handle(const SSH::SessionInfo& sessInfo, std::string_view cmdName
.UsedAllowed = false,
.Help = "Reset secrets to it's default values",
.Handle = std::bind(HandleSecretsReset, secrets, std::placeholders::_1, std::placeholders::_2, std::placeholders::_3)
},
{
.Name = "/restart",
.UsedAllowed = false,
.Help = R"(Restart BoundBoxESP in req["delay_ms"])",
.Handle = HandleRestart
}
};

Expand Down

0 comments on commit 2a3f212

Please sign in to comment.