Server/project/src/callbacks/PresetCallbacks.ts

24 lines
504 B
TypeScript
Raw Normal View History

2023-03-03 16:23:46 +01:00
import { inject, injectable } from "tsyringe";
import { PresetController } from "../controllers/PresetController";
import { OnLoad } from "../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";
}
}