Class: Jpi::V1::Admin::AppCommentsController

Inherits:
BaseResourceController
  • Object
show all
Defined in:
app/controllers/mno_enterprise/jpi/v1/admin/app_comments_controller.rb

Instance Method Summary collapse

Instance Method Details

#createObject

POST /mnoe/jpi/v1/admin/app_comments



5
6
7
8
9
10
11
12
13
# File 'app/controllers/mno_enterprise/jpi/v1/admin/app_comments_controller.rb', line 5

def create
  @app_review = MnoEnterprise::AppComment.new(app_comment_params)

  if @app_review.save
    render :show
  else
    render json: @app_review.errors, status: :bad_request
  end
end