当我运行此nestjs代码时,遇到错误:
SyntaxError: Invalid or unexpected token
Run Code Online (Sandbox Code Playgroud)
是什么原因?
import {Controller, Get, Bind, Req, Post} from '@nestjs/common';
@Controller('cats')
export class catsController {
@Post()
create() {
return "this is a action 1ss"
}
@Get()
@Bind(Req())
findAll(request) {
return "this is a action";
}
}
Run Code Online (Sandbox Code Playgroud)