简体   繁体   中英

why can't I pull HTTP requests after configured controller in nest.js

So, the person who left the company used Nest.js write this server side. He has auth.controller, auth.service,auth.module,auth-token,jwt.strategy and jwt-payload all set up well , and I checked his module, everything is imported and the providers are being set up well.

But in front-end I do send HTTP request in any end point, I just always get code 404. even if i wrote a simple end point like this :

  *@Get('/meow')
  toMeow(){
    return 'meow';
  }*

in his controller file, I still can't pull any HTTP request.

In his other folders controller ,I do can pull the HTTP request well with same address plus the routes

What's the reason for this?

我的同事解决了这个问题,我没有向模块注册jwt.strategy

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM