update patterns to use new router.register_model

and make url customization a config option