endpoints icon indicating copy to clipboard operation
endpoints copied to clipboard

if no ENDPOINTS_PREFIX's are defined, go through all modules in cwd?

Open Jaymon opened this issue 6 years ago • 1 comments

In an effort to make initial configuration even easier, would it be possible to just load controllers using the current working directory? So if prefixes are set then use those, otherwise go through all the modules of the cwd and find the controllers, in this case endpoints would set prefixes to the modules that contained at least one Controller subclass.

Endpoints should ignore modules/folders that start with an underscore or dot

Jaymon avatar May 09 '19 18:05 Jaymon

it could actually just look for a controllers module in the current working directory, or look for all controllers modules in all the PATH

Jaymon avatar Aug 02 '20 01:08 Jaymon

https://github.com/Jaymon/endpoints/issues/123

Jaymon avatar Feb 16 '24 06:02 Jaymon

This was also closed in f19fd6b7d8c4eab4b865e1ebe36b50416ac72ac1 but I forgot to mention it in the commit message

Jaymon avatar Feb 16 '24 08:02 Jaymon