25 lines
801 B
C#
25 lines
801 B
C#
using SPTarkov.DI.Annotations;
|
|
using SPTarkov.Server.Core.Callbacks;
|
|
using SPTarkov.Server.Core.DI;
|
|
using SPTarkov.Server.Core.Models.Eft.ItemEvent;
|
|
using SPTarkov.Server.Core.Utils;
|
|
|
|
namespace SPTarkov.Server.Core.Routers.Static;
|
|
|
|
[Injectable]
|
|
public class ItemEventStaticRouter : StaticRouter
|
|
{
|
|
public ItemEventStaticRouter(JsonUtil jsonUtil, ItemEventCallbacks itemEventCallbacks)
|
|
: base(
|
|
jsonUtil,
|
|
[
|
|
new RouteAction(
|
|
"/client/game/profile/items/moving",
|
|
async (url, info, sessionID, output) =>
|
|
await itemEventCallbacks.HandleEvents(url, info as ItemEventRouterRequest, sessionID),
|
|
typeof(ItemEventRouterRequest)
|
|
),
|
|
]
|
|
) { }
|
|
}
|