Files
SPT-Server-Build/Libraries/SPTarkov.Server.Core/Services/Image/ImageRouterService.cs
T
2025-03-07 13:16:43 +00:00

25 lines
499 B
C#

using SPTarkov.Common.Annotations;
namespace SPTarkov.Server.Core.Services.Image;
[Injectable(InjectionType.Singleton)]
public class ImageRouterService
{
protected Dictionary<string, string> routes = new();
public void AddRoute(string urlKey, string route)
{
routes[urlKey] = route;
}
public string GetByKey(string urlKey)
{
return routes[urlKey];
}
public bool ExistsByKey(string urlKey)
{
return routes.ContainsKey(urlKey);
}
}