I just figured out how to do filesystem routing like the kind supported by Nextjs, but for Nodejs API’s implemented in express. Check out the commit on my GitHub:
https://github.com/abraham-serafino/simple-security/compare/main…express-file-path-routing#diff-3b62bfb52c340d82485e1a1712ac89b98c5c8f55499990329997e0c692ac620d