un-private /profile

This commit is contained in:
Sven Fuchs 2012-09-18 00:04:20 +02:00
parent 957e9ee378
commit ea96905e8a

View File

@ -18,8 +18,9 @@ class Travis::Api::App
# "synced_at": "2012-08-14T22:11:21Z" # "synced_at": "2012-08-14T22:11:21Z"
# } # }
# } # }
get '/', scope: :private do # , scope: :private
body user get '/' do
body service(:user).find_one, type: :user
end end
put '/', scope: :private do put '/', scope: :private do
@ -29,9 +30,10 @@ class Travis::Api::App
end end
# TODO: Add implementation and documentation. # TODO: Add implementation and documentation.
post '/sync', scope: :private do # , scope: :private
raise NotImplementedError post '/sync' do
sync_user(current_user) # raise NotImplementedError
# sync_user(current_user)
'ok' 'ok'
end end