add resource routes and object sharing functionality.