0
0
mirror of https://github.com/sp-tarkov/server.git synced 2025-02-13 09:50:43 -05:00
server/project/src/routers/dynamic/LocationDynamicRouter.ts
Refringe 50c7a26a58
ESLint Pass
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.
2024-05-07 23:57:08 -04:00

26 lines
782 B
TypeScript

import { inject, injectable } from "tsyringe";
import { LocationCallbacks } from "@spt-aki/callbacks/LocationCallbacks";
import { DynamicRouter, RouteAction } from "@spt-aki/di/Router";
@injectable()
export class LocationDynamicRouter extends DynamicRouter
{
constructor(@inject("LocationCallbacks") protected locationCallbacks: LocationCallbacks)
{
super([
new RouteAction(
"/client/location/getLocalloot",
(url: string, info: any, sessionID: string, _output: string): any =>
{
return this.locationCallbacks.getLocation(url, info, sessionID);
},
),
]);
}
public override getTopLevelRoute(): string
{
return "aki-loot";
}
}