24 lines
504 B
TypeScript
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";
|
||
|
}
|
||
|
}
|