Server/project/src/callbacks/HandbookCallbacks.ts

22 lines
528 B
TypeScript
Raw Normal View History

2023-03-03 16:23:46 +01:00
import { inject, injectable } from "tsyringe";
import { HandbookController } from "@spt-aki/controllers/HandbookController";
import { OnLoad } from "@spt-aki/di/OnLoad";
2023-03-03 16:23:46 +01:00
@injectable()
export class HandbookCallbacks implements OnLoad
{
constructor(
@inject("HandbookController") protected handbookController: HandbookController
)
{
}
public async onLoad(): Promise<void>
{
this.handbookController.load();
}
public getRoute(): string
{
return "aki-handbook";
}
}