This commit is contained in:
= 2014-12-18 14:51:37 +08:00
commit 93c7deebc4
2 changed files with 1343 additions and 1330 deletions

View File

@ -25,8 +25,9 @@ module Mobile
post do post do
authenticate! authenticate!
ws = WatchesService.new ws = WatchesService.new
o = ws.watch(params.merge({current_user_id:current_user.id, object_type:'user' }) ) o = ws.watch(params.merge({current_user_id:current_user.id, object_type:'user' }) )
{status:0, data: o} present :data, o, with: Mobile::Entities::User
present :status, 0
end end

File diff suppressed because it is too large Load Diff