From ea96905e8a06a8ee7ab578b91f14b43f4fbf3927 Mon Sep 17 00:00:00 2001 From: Sven Fuchs Date: Tue, 18 Sep 2012 00:04:20 +0200 Subject: [PATCH] un-private /profile --- lib/travis/api/app/endpoint/profile.rb | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/lib/travis/api/app/endpoint/profile.rb b/lib/travis/api/app/endpoint/profile.rb index 5e6f3fa7..1e39238a 100644 --- a/lib/travis/api/app/endpoint/profile.rb +++ b/lib/travis/api/app/endpoint/profile.rb @@ -18,8 +18,9 @@ class Travis::Api::App # "synced_at": "2012-08-14T22:11:21Z" # } # } - get '/', scope: :private do - body user + # , scope: :private + get '/' do + body service(:user).find_one, type: :user end put '/', scope: :private do @@ -29,9 +30,10 @@ class Travis::Api::App end # TODO: Add implementation and documentation. - post '/sync', scope: :private do - raise NotImplementedError - sync_user(current_user) + # , scope: :private + post '/sync' do + # raise NotImplementedError + # sync_user(current_user) 'ok' end