refactored out the json-patch-api router into its own module