diff --git a/src/webui/requesthandler.cpp b/src/webui/requesthandler.cpp index 02689faaa..0bcded468 100644 --- a/src/webui/requesthandler.cpp +++ b/src/webui/requesthandler.cpp @@ -108,6 +108,7 @@ QMap > RequestHandler::initialize ADD_ACTION(command, recheck); ADD_ACTION(version, api); ADD_ACTION(version, api_min); + ADD_ACTION(version, qbittorrent); return actions; } @@ -225,6 +226,11 @@ void RequestHandler::action_version_api_min() print(QString::number(API_VERSION_MIN), CONTENT_TYPE_TXT); } +void RequestHandler::action_version_qbittorrent() +{ + print(QString(VERSION), CONTENT_TYPE_TXT); +} + void RequestHandler::action_command_shutdown() { qDebug() << "Shutdown request from Web UI"; diff --git a/src/webui/requesthandler.h b/src/webui/requesthandler.h index 6e83b7a1a..f1d019999 100644 --- a/src/webui/requesthandler.h +++ b/src/webui/requesthandler.h @@ -83,6 +83,7 @@ private: void action_command_recheck(); void action_version_api(); void action_version_api_min(); + void action_version_qbittorrent(); typedef void (RequestHandler::*Action)();