mirror of
https://github.com/sp-tarkov/server.git
synced 2025-02-13 09:50:43 -05:00
- Ability to use @spt-aki path alias on the whole project. - Swapped all imports from relative paths, for imports using the path alias. Reviewed-on: SPT-AKI/Server#157 Co-authored-by: TheSparta <thesparta@noreply.dev.sp-tarkov.com> Co-committed-by: TheSparta <thesparta@noreply.dev.sp-tarkov.com>
26 lines
859 B
TypeScript
26 lines
859 B
TypeScript
import { inject, injectable } from "tsyringe";
|
|
|
|
import { PresetBuildCallbacks } from "@spt-aki/callbacks/PresetBuildCallbacks";
|
|
import { RouteAction, StaticRouter } from "@spt-aki/di/Router";
|
|
|
|
@injectable()
|
|
export class PresetStaticRouter extends StaticRouter
|
|
{
|
|
constructor(
|
|
@inject("PresetBuildCallbacks") protected presetCallbacks: PresetBuildCallbacks
|
|
)
|
|
{
|
|
super(
|
|
[
|
|
new RouteAction(
|
|
"/client/handbook/builds/my/list",
|
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
(url: string, info: any, sessionID: string, output: string): any =>
|
|
{
|
|
return this.presetCallbacks.getHandbookUserlist(url, info, sessionID);
|
|
}
|
|
)
|
|
]
|
|
);
|
|
}
|
|
} |