diff --git a/src/entities/RequestHandler.ts b/src/entities/RequestHandler.ts index e9d3af2..de32c03 100644 --- a/src/entities/RequestHandler.ts +++ b/src/entities/RequestHandler.ts @@ -31,6 +31,14 @@ export class RequestHandler { public constructor(private req : Request, private response : Response) {} + /** + * Get remote IP address + */ + public get remoteIP() : string { + // TODO : check in production + return this.req.ip; + } + /** * Get a parameter included in the post request *