I tried to make the api in a different way but getting some error

I made a routes folder that had one route’s path in which I imported the db.js .
In the public folder, I made 2 HTML pages one for displaying the table and the other for entering the values and both the HTML pages have a different js file.
I am sending the link to the GitHub repository . Please check and help …!!

ERROR FACING ->'router.use() requires a middleware function but got a ’ + gettype(fn)).

LINK - https://github.com/TanmayJain17/TJSWebDev/tree/main/Webinar13/express-api-mysql2