Doesn't Dingo handle versioning for you ...
Jun 9, 2017
2
Level 2
Howto version /app-Folder
Hi there —
I just started using Lumen (together with Dingo) to built an internal API. Since I expect I need to maintain different API versions in the future, I was wondering if this can be reflected in the directory structure of the app folder, e.g. instead of having a controller file sitting in `/app/Http/Controllers/AuthController.p I'd like to have the structure like this: `/app/v1/Http/Controllers/AuthController.p. However, if I just add this subfolder, the app crashes (obviously).
Is it easily (read: without going through every file and modify the namespaces, etc) possible to achieve this somehow?
Thanks a lot!
Level 46
Please or to participate in this conversation.