Service Junk Drawer at /attic
This commit is contained in:
@@ -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}` };
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user