diff options
author | Robin Houston <robin.houston@gmail.com> | 2012-05-28 10:29:44 +0100 |
---|---|---|
committer | Robin Houston <robin.houston@gmail.com> | 2012-06-06 19:34:58 +0100 |
commit | a9da9e604855fec18b5b7af349a0c8c0330ebfea (patch) | |
tree | 654ff6132ae560ae428f6c636296625980094d7f /app/controllers/api_controller.rb | |
parent | c6b9e01f32f5e58a4abf48b6c781906cd914429f (diff) |
more comments
Diffstat (limited to 'app/controllers/api_controller.rb')
-rw-r--r-- | app/controllers/api_controller.rb | 3 |
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 |