d13e86ba46
Rebranded src code and scripts to SPT Co-authored-by: clodan <clodan@clodan.com> Reviewed-on: https://dev.sp-tarkov.com/SPT-AKI/Server/pulls/345 Co-authored-by: Alex <clodan@noreply.dev.sp-tarkov.com> Co-committed-by: Alex <clodan@noreply.dev.sp-tarkov.com>
26 lines
503 B
TypeScript
26 lines
503 B
TypeScript
import { inject, injectable } from "tsyringe";
|
|
import { OnLoad } from "@spt/di/OnLoad";
|
|
import { HttpServer } from "@spt/servers/HttpServer";
|
|
|
|
@injectable()
|
|
export class HttpCallbacks implements OnLoad
|
|
{
|
|
constructor(@inject("HttpServer") protected httpServer: HttpServer)
|
|
{}
|
|
|
|
public async onLoad(): Promise<void>
|
|
{
|
|
this.httpServer.load();
|
|
}
|
|
|
|
public getRoute(): string
|
|
{
|
|
return "spt-http";
|
|
}
|
|
|
|
public getImage(): string
|
|
{
|
|
return "";
|
|
}
|
|
}
|