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
|
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
|
||||||
|
|
||||||
|
|
||||||
|
|
2668
db/schema.rb
2668
db/schema.rb
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue