2020-03-09 00:40:16 +08:00
|
|
|
if @new_project
|
2020-03-24 12:01:52 +08:00
|
|
|
json.status 0
|
|
|
|
|
json.message "fork项目成功"
|
2020-03-09 00:40:16 +08:00
|
|
|
json.id @new_project.id
|
|
|
|
|
json.identifier @new_project.identifier
|
|
|
|
|
else
|
2020-03-24 12:01:52 +08:00
|
|
|
json.status -1
|
|
|
|
|
json.message "fork项目失败"
|
2020-03-09 00:40:16 +08:00
|
|
|
json.nil!
|
|
|
|
|
end
|