That Node class you use to wrap the dictionary for type safety–is that a Vapor thing or a Swift thing? Is there somewhere I can read more about how that works?
@fengson Hm perhaps! If we make one, what would you like to see in the book?
@anthony_lockett I wasn’t planning on it, but could be convinced. What kind of middleware / vapor packages are you interested in learning how to make?
@herpgps I just gave this a try with the raw() tag and it seemed to work OK for me. Can you try this and let me know if it works for you? raw.leaf · GitHub
@kamcma That’s a Vapor thing. The developers of Vapor talk about it a bit in this tech talk: - YouTube
@rwenderlich Well I was planning on writing two middleware modules. One for Authorize.net and one for ShipStation. In the end I would like the Authorize.net one to be just a Merchant middleware in general. But I think if you do just anything it would be beneficial, as my issue is I have no idea where to start.
@anthony_lockett I could make a screencast that shows how to make a basic middleware example - perhaps one that beautifies an error message, or perhaps one that logs the time to perform a request. Would that be useful or are you looking for something different?
Thanks Ray, Your example seems to work just fine, so I will take a look at my previous test case, I upgraded to Xcode 8.1 only a few days after seeing your tutorial and over several days have had a few strange things happen when building a new vapor project.
The sources folder contained many more folders than the single “App” folder shown in your video. So I needed to test this on a different machine for comparison.
So I will let you know what I find out