2023-03-03 16:23:46 +01:00
|
|
|
import { inject, injectable } from "tsyringe";
|
|
|
|
|
2023-10-19 19:21:17 +02:00
|
|
|
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(
|
|
|
|
@inject("HttpServer") protected httpServer: HttpServer
|
|
|
|
)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
public async onLoad(): Promise<void>
|
|
|
|
{
|
|
|
|
this.httpServer.load();
|
|
|
|
}
|
|
|
|
|
|
|
|
public getRoute(): string
|
|
|
|
{
|
|
|
|
return "aki-http";
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public getImage(): string
|
|
|
|
{
|
|
|
|
return "";
|
|
|
|
}
|
|
|
|
}
|