Server/project/src/callbacks/PresetCallbacks.ts
2023-03-03 15:23:46 +00:00

24 lines
504 B
TypeScript

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";
}
}