Files
SPT-Server-Build/Core/Services/Mod/Image/ImageRouterService.cs
T
2025-01-09 00:15:42 +00:00

25 lines
476 B
C#

using Core.Annotations;
namespace Core.Services.Mod.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);
}
}