Skip to content

Commit a5a4827

Browse files
authored
Merge pull request #745 from code-corps/update-project-controller
Update project controller to take website correctly
2 parents 542b38d + 66247cb commit a5a4827

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

web/controllers/project_controller.ex

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,8 @@ defmodule CodeCorps.ProjectController do
2626
def handle_create(_conn, attributes) do
2727
%Project{} |> Project.create_changeset(attributes)
2828
end
29+
30+
def handle_update(_conn, project, attributes) do
31+
project |> Project.update_changeset(attributes)
32+
end
2933
end

0 commit comments

Comments
 (0)