2021-09-04 19:52:48:5248 error: uncaughtException: Route.post() requires a callback function but got a [object Undefined] Error: Route.post() requires a callback function but got a [object Undefined] at Route. [as post] (/Users/artemstepanov/Documents/a-level/test-back-end/node_modules/express/lib/router/route.js:202:15) at Function.proto. [as post] (/Users/artemstepanov/Documents/a-level/test-back-end/node_modules/express/lib/router/index.js:510:19) at Object. (/Users/artemstepanov/Documents/a-level/test-back-end/src/routes/auth/index.js:9:8) at Module._compile (internal/modules/cjs/loader.js:1063:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10) at Module.load (internal/modules/cjs/loader.js:928:32) at Function.Module._load (internal/modules/cjs/loader.js:769:14) at Module.require (internal/modules/cjs/loader.js:952:19) at require (internal/modules/cjs/helpers.js:88:18) at Object. (/Users/artemstepanov/Documents/a-level/test-back-end/src/routes/index.js:3:14) at Module._compile (internal/modules/cjs/loader.js:1063:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10) at Module.load (internal/modules/cjs/loader.js:928:32) at Function.Module._load (internal/modules/cjs/loader.js:769:14) at Module.require (internal/modules/cjs/loader.js:952:19) at require (internal/modules/cjs/helpers.js:88:18) undefined 2021-09-04 22:48:55:4855 error: URL: undefined/register, Method: POST, ErrorMessage: User already exist undefined 2021-09-04 22:52:28:5228 error: URL: undefined/register, Method: POST, ErrorMessage: The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView. Received undefined undefined 2021-09-04 22:53:22:5322 error: URL: undefined/register, Method: POST, ErrorMessage: The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView. Received undefined undefined 2021-09-04 23:04:05:45 error: URL: undefined/login, Method: POST, ErrorMessage: Cannot set headers after they are sent to the client undefined 2021-09-04 23:04:40:440 error: URL: undefined/login, Method: POST, ErrorMessage: Cannot set headers after they are sent to the client undefined