Isolated ResponseFormat in a new file
This commit is contained in:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user