Isolated ResponseFormat in a new file

This commit is contained in:
emeric
2024-11-29 21:37:38 +01:00
parent e3a94d0540
commit 13a0aab09c
8 changed files with 80 additions and 25 deletions
@@ -32,19 +32,6 @@
namespace lms::api::subsonic
{
std::string_view ResponseFormatToMimeType(ResponseFormat format)
{
switch (format)
{
case ResponseFormat::xml:
return "text/xml";
case ResponseFormat::json:
return "application/json";
}
return "";
}
void Response::Node::setValue(std::string_view value)
{
assert(_children.empty() && _childrenArrays.empty() && _childrenValues.empty());