mirror of
https://github.com/nestjs/nest.git
synced 2026-02-21 23:11:44 +00:00
sample(): fix sse example
This commit is contained in:
@@ -8,11 +8,10 @@ import { map } from 'rxjs/operators';
|
||||
@Controller()
|
||||
export class AppController {
|
||||
@Get()
|
||||
index(@Res({ passthrough: true }) response: Response) {
|
||||
index(@Res() response: Response) {
|
||||
response
|
||||
.type('text/html')
|
||||
.send(readFileSync(join(__dirname, 'index.html')).toString());
|
||||
return 'xddd';
|
||||
}
|
||||
|
||||
@Sse('sse')
|
||||
|
||||
Reference in New Issue
Block a user