Sha256: 1cd9f5747d31909b2ddd14c0641e96abebcc13ed9079cba7b2ed41130445fd0d
Contents?: true
Size: 390 Bytes
Versions: 4
Compression:
Stored size: 390 Bytes
Contents
require 'json' class KojacMetalController < ActionController::Metal include KojacFrontMethods protected def current_user @current_user ||= env['warden'].user #User.find_by(id: session[:user]) end public def index input = JSON.parse(request.body.read) jsono,status = process_input(input['kojac']) self.response_body = jsono.to_json self.status = status end end
Version data entries
4 entries across 4 versions & 1 rubygems