nodejs报错:Cannot set property type of which has only a getter

https://gitee.com/laiyinan92/...

代码都在这里
运行以后
打开localhost:3001/menus

会报错:Internal Server Error

到项目里报错 :

processing GET /menus

  TypeError: Cannot set property type of # which has only a getter
  at GET /menus (/Users/laiyinan/Documents/后端开发/blog/controller/menu.js:3:26)
  at dispatch (/Users/laiyinan/Documents/后端开发/blog/node_modules/koa-router/node_modules/koa-compose/index.js:44:32)
  at next (/Users/laiyinan/Documents/后端开发/blog/node_modules/koa-router/node_modules/koa-compose/index.js:45:18)
  at /Users/laiyinan/Documents/后端开发/blog/node_modules/koa-router/lib/router.js:346:16
  at dispatch (/Users/laiyinan/Documents/后端开发/blog/node_modules/koa-router/node_modules/koa-compose/index.js:44:32)
  at /Users/laiyinan/Documents/后端开发/blog/node_modules/koa-router/node_modules/koa-compose/index.js:36:12
  at dispatch (/Users/laiyinan/Documents/后端开发/blog/node_modules/koa-router/lib/router.js:351:31)
  at dispatch (/Users/laiyinan/Documents/后端开发/blog/node_modules/koa-compose/index.js:42:32)
  at bodyParser (/Users/laiyinan/Documents/后端开发/blog/node_modules/koa-bodyparser/index.js:86:11)
  at process._tickCallback (internal/process/next_tick.js:68:7)

最佳答案

已解决 response写成request了