Commit 31368258 by Ibrahim Awwal

Add an API call to return subscribed threads for a user.

parent 77d04d22
......@@ -2,6 +2,10 @@ get "#{APIPREFIX}/users/:user_id/notifications" do |user_id|
user.notifications.map(&:to_hash).to_json
end
get "#{APIPREFIX}/users/:user_id/subscribed_threads" do |user_id|
handle_threads_query(user.subscribed_threads)
end
post "#{APIPREFIX}/users/:user_id/subscriptions" do |user_id|
user.subscribe(source).to_hash.to_json
end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment