You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
351 B
14 lines
351 B
5 years ago
|
class Projects::ProjectAppliesController < Projects::BaseController
|
||
|
def create
|
||
|
project = Projects::ApplyJoinService.call(current_user, create_params)
|
||
|
render_ok(project_id: project.id)
|
||
|
rescue Projects::ApplyJoinService::Error => ex
|
||
|
render_error(ex.message)
|
||
|
end
|
||
|
|
||
|
private
|
||
|
|
||
|
def create_params
|
||
|
params.permit(:code, :role)
|
||
|
end
|
||
|
end
|