add resource loading route middleware for user modeled objected