added methods to get and set a user id in route
fixed routing issue when parameters contained slashes