class TinymceAssetsController < ApplicationController
  def create
    arquivo = Ppa::Imagem.create params.permit(:file, :alt, :hint)
    
    render json: {
      image: {
        url: arquivo.file.url
      }
    }, content_type: "text/html"
  end
end
