Render IP
This commit is contained in:
@@ -31,7 +31,7 @@ export class JunkDrawerController {
|
||||
if (req.ip) {
|
||||
items = await this.junkDrawerService.getItemsForIp(req.ip);
|
||||
}
|
||||
return { items };
|
||||
return { items, ip: req.ip };
|
||||
}
|
||||
|
||||
@Get(':slug.json')
|
||||
|
@@ -46,7 +46,7 @@
|
||||
</div>
|
||||
</form>
|
||||
<div>
|
||||
<h2>Your Items</h2>
|
||||
<h2>Your Items ({{ip}})</h2>
|
||||
<div>
|
||||
{{#each items}}
|
||||
<div>
|
||||
|
Reference in New Issue
Block a user