Sha256: af55609e73000ad2087fee0cf69af9128515272c49e9793b3355f01aded94429

Contents?: true

Size: 290 Bytes

Versions: 3

Compression:

Stored size: 290 Bytes

Contents

class PostsController < Lam::BaseController
  def create
    # render text: "test2" # more consistent for web controllers

    # render returns Lamba Proxy struture for web requests
    render json: event, status: 200
  end

  # def update
  #   render json: event, status: 200
  # end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
lam-0.1.2 spec/fixtures/project/app/controllers/posts_controller.rb
lam-0.1.1 spec/fixtures/project/app/controllers/posts_controller.rb
lam-0.0.1 spec/fixtures/project/app/controllers/posts_controller.rb