Sha256: 4b6e021c4b903f03534d6d5db34135c9163d54291bb69f2965b504a900b06e15
Contents?: true
Size: 353 Bytes
Versions: 3
Compression:
Stored size: 353 Bytes
Contents
class TranslationsController < ApplicationController skip_before_action :authenticate_user!, :validate_subdomain def translate translated = AutoTranslator.new(original: params[:original], to: params[:to]).perform render json: {status: 200, translated: translated} rescue Exception => e render json: {status: 500, error: e} end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
autotolk-0.1.5 | app/controllers/translations_controller.rb |
autotolk-0.1.4 | app/controllers/translations_controller.rb |
autotolk-0.1.2 | app/controllers/translations_controller.rb |