diff --git a/app/api/mobile/api.rb b/app/api/mobile/api.rb index eba39722..eefedb5b 100644 --- a/app/api/mobile/api.rb +++ b/app/api/mobile/api.rb @@ -159,6 +159,7 @@ module Mobile mount Apis::Sources mount Apis::Careers mount Apis::Assets + mount Apis::Ecloud diff --git a/app/api/mobile/apis/ecloud.rb b/app/api/mobile/apis/ecloud.rb new file mode 100644 index 00000000..a584d76b --- /dev/null +++ b/app/api/mobile/apis/ecloud.rb @@ -0,0 +1,19 @@ +# encoding=utf-8 +module Mobile + module Apis + class Ecloud < Grape::API + # before {authenticate!} + content_type :json, 'application/json;charset=UTF-8' + + resources :ecloud do + + desc "ecloud接口测试" + + get 'list' do + EcloudService.new.list + end + end + + end + end +end \ No newline at end of file diff --git a/app/services/ecloud_service.rb b/app/services/ecloud_service.rb new file mode 100644 index 00000000..7371b959 --- /dev/null +++ b/app/services/ecloud_service.rb @@ -0,0 +1,6 @@ +class EcloudService + + def list + return {status: 0, message: "test"} + end +end \ No newline at end of file diff --git a/config/initializers/gitlab_config.rb.template b/config/initializers/gitlab_config.rb.template deleted file mode 100644 index c82b2edf..00000000 --- a/config/initializers/gitlab_config.rb.template +++ /dev/null @@ -1,9 +0,0 @@ -Gitlab.configure do |config| - # config.endpoint = 'http://192.168.41.130:3000/trustie/api/v3' # API endpoint URL, default: ENV['GITLAB_API_ENDPOINT'] - # config.private_token = 'cK15gUDwvt8EEkzwQ_63' # user's private token, default: ENV['GITLAB_API_PRIVATE_TOKEN'] - config.endpoint = 'http://gitfast.trustie.net/api/v3' # API endpoint URL, default: ENV['GITLAB_API_ENDPOINT'] - config.private_token = 'fPc_gBmEiSANve8TCfxW' # user's private token, default: ENV['GITLAB_API_PRIVATE_TOKEN'] - # Optional - # config.user_agent = 'Custom User Agent' # user agent, default: 'Gitlab Ruby Gem [version]' - # config.sudo = 'user' # username for sudo mode, default: nil -end diff --git a/lib/gitlab-cli/bin/gitlab b/lib/gitlab-cli/bin/gitlab old mode 100644 new mode 100755 diff --git a/lib/grack/bin/console b/lib/grack/bin/console old mode 100644 new mode 100755 diff --git a/lib/grack/bin/testserver b/lib/grack/bin/testserver old mode 100644 new mode 100755 diff --git a/lib/wechat/bin/wechat b/lib/wechat/bin/wechat old mode 100644 new mode 100755