5a5e18f568
* Initial work on adding https support * Updated logging * More logging * Added support for a certificate password Replaced method used for getting path to cert * Reduce duplication of logic in program.cs * Cleanup of `HttpServer` * More https stuff * https * Fixed remote IP stuff * Fixed non-local request logging * Updated assets * Replaced `singleplayer/bossconvert` to `singleplayer/bosstypes` * Updated map loot * Asset update * Stop storing a bots inventory and other values to save memory --------- Co-authored-by: Chomp <dev@dev.sp-tarkov.com> Co-authored-by: clodan <clodan@clodan.com>
58 lines
1.7 KiB
C#
58 lines
1.7 KiB
C#
using Core.Callbacks;
|
|
using Core.DI;
|
|
using Core.Models.Eft.Common;
|
|
using Core.Models.Eft.InRaid;
|
|
using Core.Utils;
|
|
using SptCommon.Annotations;
|
|
|
|
namespace Core.Routers.Static;
|
|
|
|
[Injectable(InjectableTypeOverride = typeof(StaticRouter))]
|
|
public class InraidStaticRouter : StaticRouter
|
|
{
|
|
public InraidStaticRouter(InraidCallbacks inraidCallbacks, JsonUtil jsonUtil) : base(
|
|
jsonUtil,
|
|
[
|
|
new RouteAction(
|
|
"/raid/profile/scavsave",
|
|
(
|
|
url,
|
|
info,
|
|
sessionID,
|
|
output
|
|
) => inraidCallbacks.SaveProgress(url, info as ScavSaveRequestData, sessionID),
|
|
typeof(ScavSaveRequestData)
|
|
),
|
|
new RouteAction(
|
|
"/singleplayer/settings/raid/menu",
|
|
(
|
|
url,
|
|
info,
|
|
sessionID,
|
|
output
|
|
) => inraidCallbacks.GetRaidMenuSettings()
|
|
),
|
|
new RouteAction(
|
|
"/singleplayer/scav/traitorscavhostile",
|
|
(
|
|
url,
|
|
info,
|
|
sessionID,
|
|
output
|
|
) => inraidCallbacks.GetTraitorScavHostileChance(url, info as EmptyRequestData, sessionID)
|
|
),
|
|
new RouteAction(
|
|
"/singleplayer/bosstypes",
|
|
(
|
|
url,
|
|
info,
|
|
sessionID,
|
|
output
|
|
) => inraidCallbacks.GetBossTypes(url, info as EmptyRequestData, sessionID)
|
|
)
|
|
]
|
|
)
|
|
{
|
|
}
|
|
}
|