Sha256: a2d6d7b8ca38aa6545164ad40d5acbe40fc3e860e30cf5320e1cc0d91f9fc104

Contents?: true

Size: 395 Bytes

Versions: 35

Compression:

Stored size: 395 Bytes

Contents

class HelloWorldHandler < RubyPitaya::HandlerBase

  non_authenticated_actions :sayHello, :showMessage

  def sayHello
    response = {
      code: StatusCodes::CODE_OK,
      data: {
        message: 'Hello!'
      }
    }
  end

  def showMessage
    message = @params[:message]

    response = {
      code: StatusCodes::CODE_OK,
      data: {
        message: message
      }
    }
  end
end

Version data entries

35 entries across 31 versions & 1 rubygems

Version Path
rubypitaya-3.12.5 ./lib/rubypitaya/app-template/app/handlers/hello_world_handler.rb
rubypitaya-3.12.4 ./lib/rubypitaya/app-template/app/handlers/hello_world_handler.rb
rubypitaya-3.12.4 ./lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/rubypitaya-3.12.1/lib/rubypitaya/app-template/app/handlers/hello_world_handler.rb
rubypitaya-3.12.3 ./lib/rubypitaya/app-template/app/handlers/hello_world_handler.rb
rubypitaya-3.12.3 ./lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/rubypitaya-3.12.1/lib/rubypitaya/app-template/app/handlers/hello_world_handler.rb
rubypitaya-3.12.2 ./lib/rubypitaya/app-template/app/handlers/hello_world_handler.rb
rubypitaya-3.12.2 ./lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/rubypitaya-3.12.1/lib/rubypitaya/app-template/app/handlers/hello_world_handler.rb
rubypitaya-3.12.1 ./lib/rubypitaya/app-template/app/handlers/hello_world_handler.rb
rubypitaya-3.12.0 ./lib/rubypitaya/app-template/app/handlers/hello_world_handler.rb
rubypitaya-3.11.0 ./lib/rubypitaya/app-template/app/handlers/hello_world_handler.rb
rubypitaya-3.10.0 ./lib/rubypitaya/app-template/app/handlers/hello_world_handler.rb
rubypitaya-3.9.1 ./lib/rubypitaya/app-template/app/handlers/hello_world_handler.rb
rubypitaya-3.8.1 ./lib/rubypitaya/app-template/app/handlers/hello_world_handler.rb
rubypitaya-3.8.0 ./lib/rubypitaya/app-template/app/handlers/hello_world_handler.rb
rubypitaya-3.7.0 ./lib/rubypitaya/app-template/app/handlers/hello_world_handler.rb