journey
journey copied to clipboard
Allow the return of strings instead of always JSON
When I was using the journey router, there were times when I wanted to return pure string responses instead of json. An example would be returning some html.
This commit changes the behavior of the request.send when passed strings. Instead of making json with "journey" as the key, this keeps it as a string.