brillout / wildcard-api

Functions as API.
MIT License
368 stars 14 forks source link

wildcard loads endpoints file from node_modules #46

Closed johnsonthedev closed 4 years ago

johnsonthedev commented 4 years ago

Wildcard automatically loads any file named endpoints.js or *.endpoints.js

I found out that this is also true for files in node_modules folder. In my opinion this should be excluded. In fact I find it better if we can specify a path that wildcard should use for scanning.

What is your opinion about it ?

brillout commented 4 years ago

That's unexpected and Wildcard ignores everything that is .gitignore'd.

Is node_modules/ included in your .gitignore file?

johnsonthedev commented 4 years ago

sry forgot to init my git 🙈