Skip to content

Commit

Permalink
support for DELETE method
Browse files Browse the repository at this point in the history
  • Loading branch information
divyajayan committed Jan 15, 2016
1 parent d8275c2 commit 08e85ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/api_controller.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
class ApiController < ApplicationController
def execute_route

if request.method == "GET" || request.method == "PUT"
if request.method == "GET" || request.method == "PUT" || request.method == "DELETE"
input_data = request.query_parameters
elsif request.method == "POST"
input_data = request.body.read
Expand Down

0 comments on commit 08e85ad

Please sign in to comment.