dev_forge
caicai8 5 years ago
commit d73efcba42

@ -1,2 +1,6 @@
module RepositoriesHelper
def render_decode64_content(str)
return nil if str.blank?
Base64.decode64(str)
end
end

@ -3,5 +3,5 @@ json.sha entry['sha']
json.path entry['path']
json.type entry['type']
json.size entry['size']
json.content entry['content']
json.content render_decode64_content(entry['content'])
json.target entry['target']

@ -86,7 +86,7 @@ Rails.application.routes.draw do
put :change_role
end
end
resources :forks, only: [:create]
collection do
post :migrate
get :group_type_list
@ -95,7 +95,6 @@ Rails.application.routes.draw do
member do
get :branches
post :watch
get :fork
end
end

Loading…
Cancel
Save