aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--app/controllers/api_controller.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/app/controllers/api_controller.rb b/app/controllers/api_controller.rb
index a152813f0..e5b66e7c3 100644
--- a/app/controllers/api_controller.rb
+++ b/app/controllers/api_controller.rb
@@ -54,12 +54,15 @@ class ApiController < ApplicationController
return
end
+ # Save the request, and add the corresponding InfoRequestEvent
request.save!
request.log_event("sent",
:email => nil,
:outgoing_message_id => outgoing_message.id,
:smtp_message_id => nil
)
+
+ # Return the URL and ID number.
render :json => {
'url' => make_url("request", request.url_title),
'id' => request.id