Server/project/src/callbacks/HttpCallbacks.ts

29 lines
527 B
TypeScript
Raw Normal View History

2023-03-03 16:23:46 +01:00
import { inject, injectable } from "tsyringe";
import { OnLoad } from "@spt-aki/di/OnLoad";
import { HttpServer } from "@spt-aki/servers/HttpServer";
2023-03-03 16:23:46 +01:00
@injectable()
export class HttpCallbacks implements OnLoad
{
constructor(
2023-11-10 21:19:56 +01:00
@inject("HttpServer") protected httpServer: HttpServer,
2023-03-03 16:23:46 +01:00
)
2023-11-10 21:19:56 +01:00
{}
2023-03-03 16:23:46 +01:00
public async onLoad(): Promise<void>
{
this.httpServer.load();
}
2023-11-10 21:19:56 +01:00
public getRoute(): string
2023-03-03 16:23:46 +01:00
{
return "aki-http";
}
public getImage(): string
{
return "";
}
}