added media endpoints for index and show