Made it so we can return a view file as part of an API call