Sha256: 61db13c3ad9a6cf9f8aafaa5e2dc1d7f985f3a3d424abc6b6a9acd31a166fcfe
Contents?: true
Size: 725 Bytes
Versions: 1
Compression:
Stored size: 725 Bytes
Contents
module Bushido class DataController < ApplicationController # POST /bushido/data/ def index @key = params.delete(:key) if ENV["BUSHIDO_APP_KEY"] != @key respond_to do |format| format.html { render :layout => false, :text => true, :status => :forbidden } format.json { render :status => 401 } return end end puts "OMG GOT DATA FROM BUSHIBUS" puts params.inspect puts params[:category].inspect Bushido::Data.fire(params, "#{params[:category]}.#{params[:event]}") respond_to do |format| format.json {render :json => {'acknowledged' => true}, :status => 200} end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
bushido-0.0.30 | app/controllers/bushido/data_controller.rb |