TypeError: Cannot read property 'length' of undefined
at /home/runner/boilerplate-project-stockchecker-5/routes/api.js:23:33
at Layer.handle [as handle_request] (/home/runner/boilerplate-project-stockchecker-5/node_modules/express/lib/router/layer.js:95:5)
at next (/home/runner/boilerplate-project-stockchecker-5/node_modules/express/lib/router/route.js:137:13)
at Route.dispatch (/home/runner/boilerplate-project-stockchecker-5/node_modules/express/lib/router/route.js:112:3)
at Layer.handle [as handle_request] (/home/runner/boilerplate-project-stockchecker-5/node_modules/express/lib/router/layer.js:95:5)
at /home/runner/boilerplate-project-stockchecker-5/node_modules/express/lib/router/index.js:281:22
at Function.process_params (/home/runner/boilerplate-project-stockchecker-5/node_modules/express/lib/router/index.js:335:12)
at next (/home/runner/boilerplate-project-stockchecker-5/node_modules/express/lib/router/index.js:275:10)
at csp (/home/runner/boilerplate-project-stockchecker-5/node_modules/helmet-csp/dist/index.js:53:13)
at Layer.handle [as handle_request] (/home/runner/boilerplate-project-stockchecker-5/node_modules/express/lib/router/layer.js:95:5)
All aspects of stock checker work save the functional tests in tests/2_functional-tests.js