mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-14 02:27:09 -07:00
Drop legacy WebAPI support
This commit is contained in:
parent
77fc731dec
commit
2ce3aa9731
2 changed files with 42 additions and 155 deletions
|
@ -44,8 +44,6 @@
|
|||
#include "base/utils/version.h"
|
||||
|
||||
constexpr Utils::Version<int, 3, 2> API_VERSION {2, 2, 0};
|
||||
constexpr int COMPAT_API_VERSION = 23;
|
||||
constexpr int COMPAT_API_VERSION_MIN = 23;
|
||||
|
||||
class APIController;
|
||||
class WebApplication;
|
||||
|
@ -131,7 +129,6 @@ private:
|
|||
QMap<QString, QString> m_params;
|
||||
|
||||
const QRegularExpression m_apiPathPattern {(QLatin1String("^/api/v2/(?<scope>[A-Za-z_][A-Za-z_0-9]*)/(?<action>[A-Za-z_][A-Za-z_0-9]*)$"))};
|
||||
const QRegularExpression m_apiLegacyPathPattern {QLatin1String("^/(?<action>((sync|command|query)/[A-Za-z_][A-Za-z_0-9]*|login|logout))(/(?<hash>[^/]+))?$")};
|
||||
|
||||
QHash<QString, APIController *> m_apiControllers;
|
||||
QSet<QString> m_publicAPIs;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue