Server/project/src/callbacks/HttpCallbacks.ts

21 lines
487 B
TypeScript
Raw Normal View History

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