Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Fetch API documentation
class Api::DocsController < ApplicationController
def index
@html = Aws::S3::Object.new(ENV['API_DOCS_BUCKET'], ENV['API_DOCS_FILE_NAME']).get.body.string
render html: @html.html_safe, content_type: "text/html"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.