- 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: https://dev.sp-tarkov.com/SPT-AKI/Server/pulls/157 Co-authored-by: TheSparta <thesparta@noreply.dev.sp-tarkov.com> Co-committed-by: TheSparta <thesparta@noreply.dev.sp-tarkov.com>
24 lines
516 B
TypeScript
24 lines
516 B
TypeScript
import { inject, injectable } from "tsyringe";
|
|
|
|
import { PresetController } from "@spt-aki/controllers/PresetController";
|
|
import { OnLoad } from "@spt-aki/di/OnLoad";
|
|
|
|
@injectable()
|
|
export class PresetCallbacks implements OnLoad
|
|
{
|
|
constructor(
|
|
@inject("PresetController") protected presetController: PresetController)
|
|
{
|
|
}
|
|
|
|
public async onLoad(): Promise<void>
|
|
{
|
|
this.presetController.initialize();
|
|
}
|
|
|
|
public getRoute(): string
|
|
{
|
|
return "aki-presets";
|
|
}
|
|
}
|