Service Junk Drawer at /attic

This commit is contained in:
2024-11-08 15:03:06 -07:00
parent d6390d365c
commit fa502a45c6
3 changed files with 12 additions and 13 deletions

View File

@@ -8,7 +8,6 @@ import {
Render,
Req,
Res,
UploadedFile,
UploadedFiles,
UseInterceptors,
} from '@nestjs/common';
@@ -20,8 +19,8 @@ import { JunkDrawerMetadata } from './types';
import { Request, Response } from 'express';
import { ipFromRequest } from 'src/utils/ip';
@Controller('junk-drawer')
@ApiTags('junk-drawer')
@Controller(['junk-drawer', 'attic'])
@ApiTags('attic')
export class JunkDrawerController {
constructor(private readonly junkDrawerService: JunkDrawerService) {}
@@ -119,6 +118,6 @@ export class JunkDrawerController {
if (remember && ip && !privateIsh) {
await this.junkDrawerService.recordItemForIp(ip, uniqueSlug);
}
return { url: `/junk-drawer/${uniqueSlug}` };
return { url: `/attic/${uniqueSlug}` };
}
}