Files
SPT-Server-Build/Core/Routers/Dynamic/HttpDynamicRouter.cs
T
2025-01-09 23:11:57 +00:00

24 lines
568 B
C#

using Core.Annotations;
using Core.DI;
namespace Core.Routers.Dynamic;
[Injectable(InjectableTypeOverride = typeof(DynamicRouter))]
public class HttpDynamicRouter : DynamicRouter
{
public HttpDynamicRouter(ImageRouter imageRouter) : base(
[
new(".jpg", (_, _, _, _) => imageRouter.GetImage()),
new(".png", (_, _, _, _) => imageRouter.GetImage()),
new(".ico", (_, _, _, _) => imageRouter.GetImage())
]
)
{
}
public override Type? GetBodyDeserializationType()
{
return null;
}
}