Server/project/src/callbacks/PresetCallbacks.ts

22 lines
501 B
TypeScript
Raw Normal View History

2023-03-03 16:23:46 +01:00
import { inject, injectable } from "tsyringe";
import { PresetController } from "@spt-aki/controllers/PresetController";
import { OnLoad } from "@spt-aki/di/OnLoad";
2023-03-03 16:23:46 +01:00
@injectable()
export class PresetCallbacks implements OnLoad
{
constructor(@inject("PresetController") protected presetController: PresetController)
2023-11-10 21:19:56 +01:00
{}
2023-03-03 16:23:46 +01:00
public async onLoad(): Promise<void>
{
this.presetController.initialize();
}
2023-11-10 21:19:56 +01:00
public getRoute(): string
2023-03-03 16:23:46 +01:00
{
return "aki-presets";
}
}