Renames the image MIME resolver and organizes the MIME resolvers

Renames MimeTypes to ImageMimeTypes and moves it into Common/MimeTypes, updates the thumbnail endpoint and its tests, and aligns ThemeMimeTypes on the same frozen dictionary, initializer style and field naming.
This commit is contained in:
BinaryAlley committed 2026-10-13 22:16:57 +03:00
1 parent 1aa427b1e2
commit 4bcd37898c
5 files changed
+33 -32

No files matched your search

@@ -4,12 +4,12 @@ using System.Collections.Frozen;
using System.Collections.Generic;
#endregion
namespace Lumina.Presentation.Api.Common.Utilities;
namespace Lumina.Presentation.Api.Common.MimeTypes;
/// <summary>
/// Utility class for converting from domain image types to known image mime types.
/// Resolves the MIME content type of image types.
/// </summary>
public static class MimeTypes
public static class ImageMimeTypes
{
private static readonly FrozenDictionary<ImageType, string> s_imageTypeToMimeType = new Dictionary<ImageType, string>
{