Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

add show api for kitabs

  • Loading branch information...
commit bc2273a5200d9a7061cbfd38647f0d07dd5ec4c6 1 parent b51a70a
@rajeev-sourcebits rajeev-sourcebits authored
Showing with 9 additions and 0 deletions.
  1. +9 −0 app/controllers/kitabs_controller.rb
View
9 app/controllers/kitabs_controller.rb
@@ -14,7 +14,16 @@ def create
def index
end
+ def show
+ @kitab = Kitab.find(params[:id])
+
+ respond_to do |format|
+ format.json { render :json => @kitab }
+ end
+
+ end
+
private
def kitab_params
Please sign in to comment.
Something went wrong with that request. Please try again.