Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upuser.controller.js:show seems to be dead code #2520
Comments
|
Yes, it appears that it is not used anywhere |
|
Thanks for verifying! |
If I scaffold out a project using the settings above, it seems that /server/api/user/user.controller.js:show is not used anywhere (GET /api/users/:id) other than the generated index.spec.js.
Instead, user.controller.js:me (GET /api/users/me) seems to be the only way a single user is retrieved.
I'm using Sequelize so perhaps this is in there for Mongoose only?
I might be overlooking something. Could someone else double-check this?