diff options
author | Robin Houston <robin.houston@gmail.com> | 2012-07-16 19:01:51 +0100 |
---|---|---|
committer | Robin Houston <robin.houston@gmail.com> | 2012-07-16 19:01:51 +0100 |
commit | f340cb41b3d27936dc2900894bdd35c9c16e8fc9 (patch) | |
tree | 206551e3827123bf3f2f99452f89d11046495cdb /app/controllers/api_controller.rb | |
parent | 7aeb616b07d5bd16af62b8139d2a0908f065f0e2 (diff) | |
parent | 7ff363177ebb76361aed2682382de24ef66c7408 (diff) |
Merge branch 'feature/public-body-api-2a' 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 |