50c7a26a58
This is the first pass of ESLint on the codebase. ESLint formatting is less strict when it comes to line-length and line-breaks then dprint/biome, so if you see formatting that you don't like... fix it! It shouldn't require a configuration change. - This should merge clean into master (when the time comes). - This will not merge clean into `3.9.0-DEV`, but the conflicts aren't that bad.
26 lines
511 B
TypeScript
26 lines
511 B
TypeScript
import { inject, injectable } from "tsyringe";
|
|
import { OnLoad } from "@spt-aki/di/OnLoad";
|
|
import { HttpServer } from "@spt-aki/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 "aki-http";
|
|
}
|
|
|
|
public getImage(): string
|
|
{
|
|
return "";
|
|
}
|
|
}
|