magpie/API/requests/deleteasset.cpp

13 lines
328 B
C++

//SPDX-FileCopyrightText: 2023 Yury Gubich <blue@macaw.me>
//SPDX-License-Identifier: GPL-3.0-or-later
#include "deleteasset.h"
Request::DeleteAsset::DeleteAsset(unsigned int id, const QUrl &baseUrl):
Post(createUrl(baseUrl, "/deleteAsset"), {
{"id", std::to_string(id).c_str()}
})
{
emptyResult = true;
}