mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-03 20:00:49 +08:00
init project
This commit is contained in:
12
app/controllers/blob_controller.rb
Normal file
12
app/controllers/blob_controller.rb
Normal file
@@ -0,0 +1,12 @@
|
||||
class BlobController < ApplicationController
|
||||
def new
|
||||
commit unless @repository.empty?
|
||||
end
|
||||
|
||||
def create
|
||||
create_commit(Files::CreateService, success_path: after_create_path,
|
||||
failure_view: :new,
|
||||
failure_path: namespace_project_new_blob_path(@project.namespace, @project, @ref))
|
||||
end
|
||||
|
||||
end
|
||||
Reference in New Issue
Block a user