2023-03-03 15:23:46 +00:00
|
|
|
import { inject, injectable } from "tsyringe";
|
2024-05-21 17:59:04 +00:00
|
|
|
import { OnLoad } from "@spt/di/OnLoad";
|
|
|
|
import { HttpServer } from "@spt/servers/HttpServer";
|
2023-03-03 15:23:46 +00:00
|
|
|
|
|
|
|
@injectable()
|
|
|
|
export class HttpCallbacks implements OnLoad
|
|
|
|
{
|
2023-11-13 12:31:52 -05:00
|
|
|
constructor(@inject("HttpServer") protected httpServer: HttpServer)
|
2023-11-10 15:19:56 -05:00
|
|
|
{}
|
|
|
|
|
2023-03-03 15:23:46 +00:00
|
|
|
public async onLoad(): Promise<void>
|
|
|
|
{
|
|
|
|
this.httpServer.load();
|
|
|
|
}
|
|
|
|
|
2023-11-10 15:19:56 -05:00
|
|
|
public getRoute(): string
|
2023-03-03 15:23:46 +00:00
|
|
|
{
|
2024-05-21 17:59:04 +00:00
|
|
|
return "spt-http";
|
2023-03-03 15:23:46 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public getImage(): string
|
|
|
|
{
|
|
|
|
return "";
|
|
|
|
}
|
|
|
|
}
|