DEV Community


Proper Folder Structure with Dynamic Methods?

mitchelln11 profile image mitchelln11 ・1 min read

If I have dynamic methods that could be used on several Controllers, where should those go?

Is this a possibility? Is it the wrong way to go about folder/file structure?


--with FetchParkApiMethod() inside file

--with FetchTrailApiMethod() inside file



--FetchDynamicApiMethod() which could be referenced in the Park or Trail Controllers.

Discussion (0)

Forem Open with the Forem app