Sha256: 47044016bfdc6b67fafe19a48602033ec72632106a5c23b24f6aa1201a0a4f95

Contents?: true

Size: 279 Bytes

Versions: 5

Compression:

Stored size: 279 Bytes

Contents

module Portfolio
  module Admin
    class ApiController < ApplicationController
      include SitesHelper
      
      before_action Portfolio.auth_action
      
      def markdown_preview
        render json: { html: render_markdown(params[:text]) }
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
rails-portfolio-0.0.5 app/controllers/portfolio/admin/api_controller.rb
rails-portfolio-0.0.4 app/controllers/portfolio/admin/api_controller.rb
rails-portfolio-0.0.3 app/controllers/portfolio/admin/api_controller.rb
rails-portfolio-0.0.2 app/controllers/portfolio/admin/api_controller.rb
rails-portfolio-0.0.1 app/controllers/portfolio/admin/api_controller.rb