From 2a3f212581254fd31d072d35ea22b18fabaf1f16 Mon Sep 17 00:00:00 2001 From: Andrew Krasichkov Date: Mon, 1 Jan 2024 13:49:14 +0300 Subject: [PATCH] reorder commands (#31) --- main/commands.cc | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/main/commands.cc b/main/commands.cc index ae0552f..81721ed 100644 --- a/main/commands.cc +++ b/main/commands.cc @@ -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", @@ -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 } };