Sha256: 62815a9494d82e179f6956ba362b7110f9209fcb94971a89d841e4d766546146
Contents?: true
Size: 457 Bytes
Versions: 2
Compression:
Stored size: 457 Bytes
Contents
class HelloWorldChatopController < ApplicationController include ::Chatops::Controller # The default chatops RPC prefix. Clients may replace this. chatops_namespace :hello_world skip_before_action :verify_authenticity_token chatop :classic, /classic/, "classic - The classic hello world" do jsonrpc_success "Hello World!" end chatop :boomtown, /boomtown/, "boomtown - Returns an error" do jsonrpc_failure "Whoops" end end
Version data entries
2 entries across 2 versions & 1 rubygems