来获取传输数据 @Post() async create(@Body() createCatDto: CreateCatDto) { return 'This action adds a new cat'; } // 重定向 @Get('docs') @Redirect('https://docs.nestjs.com', 302) getDocs(@Query('version') version) { if (version && version === '5') { return { url: 'htt...
:number;/*** Local domain socket path. If set the port, host and family will be ignored.*/path?:string;/*** TCP KeepAlive on the socket with a X ms delay before start. Set to a non-number value to disable keepAlive.*/keepAlive?:number;connectionName?:string;/*** If set, clien...
* By default this module will send "index.html" files in response to a request on a directory. * To disable this set false or to supply a new index pass a string or an array in preferred order. */index?:boolean|string|string[];/** * Enable or disable Last-Modified header, defaults...
* By default this module will send "index.html" files in response to a request on a directory. * To disable this set false or to supply a new index pass a string or an array in preferred order. */index?:boolean|string|string[];/** * Enable or disable Last-Modified header, defaults...
Also, you would need to disable the default symlink otherwise, nginx will redirect all requests to the default site. Use the following command to unlink it. sudounlink /etc/nginx/sites-enabled/default Copy Now, restart the Nginx service using the following command. ...
* To disable this set false or to supply a new index pass a string or an array in preferred order. */ index?: boolean | string | string[]; /** * Enable or disable Last-Modified header, defaults to true. Uses the file system's last modified value. ...
the maxAge option to check if the file has changed. */ immutable?: boolean;/** * By default this module will send "index.html" files in response to a request on a directory.* To disable this set false or to supply a new index pass a string or an array in preferred order.
* To disable this set false or to supply a new index pass a string or an array in preferred order. */index?:boolean|string|string[];/** * Enable or disable Last-Modified header, defaults to true. Uses the file system's last modified value. ...