Error: .post() requires callback functions but got a [object Undefined] not working

后端 未结 8 1917
执念已碎
执念已碎 2021-02-04 09:35

there are several issues with the same theme, but I could not solve my problem.

Error: Route.post() requires callback functions but got a [object Undefined]
at R         


        
8条回答
  •  清酒与你
    2021-02-04 10:25

    In my case it was because I had a misspelling between the router and controller file. Check both so that they match, the error .POST() requires callback functions but got a [object Undefined] has nothing to do with the real problem.

提交回复
热议问题