Method: Webcmd::App#call
- Defined in:
- lib/webcmd/app.rb
#call(env) ⇒ Object
10 11 12 13 14 15 16 |
# File 'lib/webcmd/app.rb', line 10 def call(env) if token_valid?(env) [200, {'Content-Type' => 'text/plain'}, CommandRunner.new(@command)] else [403, {'Content-Type' => 'text/plain'}, ['Token invalid']] end end |