Closed Tradunsky closed 7 years ago
Hi, thanks for the PR, we can probably just throw an exception here, it will only be a development time thing and the route should be declared properly at the end of the day. For example is TestServer.appServer.get( "unreachable", {}) supposed to actually be "/unreachable" or "/some/other/base/route/unreachable" ?
I had some experiments with spring mvc and they treated "unreachable" and "/unreachable" in the same way without any exceptions.
As for wasabi, it is ok to throw exception, but for the sake of readability: get("books", booksJson) or get("books", returnsAllBooks)
However, I would create a new MR with throwing an exception if you didn't change your mind
Manually merged PR due to conflicts since I merged PR #95 ahead.
Cool, thanks!
Shall it throw an exception instead of normalization?