Render IP

This commit is contained in:
2024-10-30 10:23:24 -06:00
parent 3df355f045
commit 8ff7ca4f10
2 changed files with 2 additions and 2 deletions

View File

@@ -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')

View File

@@ -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>