Route.get() requires callback functions but got a “object Undefined”

I got the same error.
After debugging, I found that I misspelled the method name that I imported from the controller into the route file.
Please check the method name.

Leave a Comment