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