Added an endpoint to load resources.