Commit a9fcc4ea by Your Name

updated paths

parent 149c1bb3
......@@ -60,6 +60,7 @@ require './api/comment_threads'
require './api/comments'
require './api/users'
require './api/votes'
require './api/flags'
require './api/notifications_and_subscriptions'
if RACK_ENV.to_s == "development"
......
......@@ -40,6 +40,7 @@ helpers do
def flag_as_abuse(obj)
raise ArgumentError, "User id is required" unless user
obj.abuse_flaggers << user.id unless obj.abuse_flaggers.include? user.id
obj.save
obj.reload.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