Merge branch 'api' of http://repository.trustie.net/xianbo/trustie2 into api
This commit is contained in:
commit
93c7deebc4
|
@ -25,8 +25,9 @@ module Mobile
|
|||
post do
|
||||
authenticate!
|
||||
ws = WatchesService.new
|
||||
o = ws.watch(params.merge({current_user_id:current_user.id, object_type:'user' }) )
|
||||
{status:0, data: o}
|
||||
o = ws.watch(params.merge({current_user_id:current_user.id, object_type:'user' }) )
|
||||
present :data, o, with: Mobile::Entities::User
|
||||
present :status, 0
|
||||
end
|
||||
|
||||
|
||||
|
|
2668
db/schema.rb
2668
db/schema.rb
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue