PS: Apart from the info below, here is the source: link
The question is, why can not I access "User" which is a model for mongoose from a route?
That's how I have the router.
As you can see, User gives me an error "Can not find name 'User" "says.
The User model is like this.
Thank you very much !!!