File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed
Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ import {
1414 UseInterceptors ,
1515} from '@nestjs/common' ;
1616import { FileInterceptor } from '@nestjs/platform-express' ;
17- import { ApiParam , ApiTags } from '@nestjs/swagger' ;
17+ import { ApiParam , ApiQuery , ApiTags } from '@nestjs/swagger' ;
1818import {
1919 FilterOptions ,
2020 FilterSchema ,
@@ -127,6 +127,11 @@ export class FilestorageController extends AbstractController {
127127 @Get ( ':_id([0-9a-fA-F]{24})/raw' )
128128 @ApiParam ( { name : '_id' , type : String } )
129129 @ApiReadResponseDecorator ( FilestorageDto )
130+ @ApiQuery ( {
131+ name : 'mime' ,
132+ required : false ,
133+ type : String ,
134+ } )
130135 public async readRawData (
131136 @Res ( ) res : Response ,
132137 @Param ( '_id' , ObjectIdValidationPipe ) _id : Types . ObjectId ,
@@ -138,6 +143,11 @@ export class FilestorageController extends AbstractController {
138143
139144 @Get ( 'path/raw' )
140145 @ApiReadResponseDecorator ( FilestorageDto )
146+ @ApiQuery ( {
147+ name : 'mime' ,
148+ required : false ,
149+ type : String ,
150+ } )
141151 public async readPathRawData (
142152 @Res ( ) res : Response ,
143153 @Query ( 'namespace' ) namespace : string ,
You can’t perform that action at this time.
0 commit comments