diff options
author | Seb Bacon <seb.bacon@gmail.com> | 2012-07-17 10:01:13 +0100 |
---|---|---|
committer | Seb Bacon <seb.bacon@gmail.com> | 2012-07-17 10:01:13 +0100 |
commit | 00d67fc7aeb839af3a5f02a242b4bb8c29b9383d (patch) | |
tree | d5d38d2be30dc0c8ec353af682cf33bf00ebefc6 /app/controllers/api_controller.rb | |
parent | 65ca069257d3ff1292d510d794082c58a8d3afb1 (diff) | |
parent | f340cb41b3d27936dc2900894bdd35c9c16e8fc9 (diff) |
Merge branch 'develop' of github.com:sebbacon/alaveteli into develop
Diffstat (limited to 'app/controllers/api_controller.rb')
-rw-r--r-- | app/controllers/api_controller.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/app/controllers/api_controller.rb b/app/controllers/api_controller.rb index 4db07b4c9..718c31e6f 100644 --- a/app/controllers/api_controller.rb +++ b/app/controllers/api_controller.rb @@ -151,8 +151,9 @@ class ApiController < ApplicationController mail = RequestMailer.create_external_response(request, body, sent_at, attachment_hashes) request.receive(mail, mail.encoded, true) end - - head :no_content + render :json => { + 'url' => make_url("request", request.url_title), + } end def body_request_events |