aboutsummaryrefslogtreecommitdiff
path: root/lib/csapi/wellknown.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/csapi/wellknown.cpp')
-rw-r--r--lib/csapi/wellknown.cpp26
1 files changed, 3 insertions, 23 deletions
diff --git a/lib/csapi/wellknown.cpp b/lib/csapi/wellknown.cpp
index 464068e7..1aa0a90b 100644
--- a/lib/csapi/wellknown.cpp
+++ b/lib/csapi/wellknown.cpp
@@ -4,38 +4,18 @@
#include "wellknown.h"
-#include "converters.h"
-
#include <QtCore/QStringBuilder>
using namespace Quotient;
-static const auto basePath = QStringLiteral("/.well-known");
-
-class GetWellknownJob::Private {
-public:
- DiscoveryInformation data;
-};
-
QUrl GetWellknownJob::makeRequestUrl(QUrl baseUrl)
{
return BaseJob::makeRequestUrl(std::move(baseUrl),
- basePath % "/matrix/client");
+ QStringLiteral("/.well-known")
+ % "/matrix/client");
}
GetWellknownJob::GetWellknownJob()
: BaseJob(HttpVerb::Get, QStringLiteral("GetWellknownJob"),
- basePath % "/matrix/client", false)
- , d(new Private)
+ QStringLiteral("/.well-known") % "/matrix/client", false)
{}
-
-GetWellknownJob::~GetWellknownJob() = default;
-
-const DiscoveryInformation& GetWellknownJob::data() const { return d->data; }
-
-BaseJob::Status GetWellknownJob::parseJson(const QJsonDocument& data)
-{
- fromJson(data, d->data);
-
- return Success;
-}