-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Stub out permanent config operations (#232)
* Stub out permanent config operations * credo * Change module name
- Loading branch information
Showing
3 changed files
with
46 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
defmodule Screenplay.Config.PermanentConfig do | ||
@moduledoc false | ||
|
||
def add_new_screen do | ||
end | ||
|
||
def edit_screen do | ||
end | ||
|
||
def delete_screen do | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
defmodule ScreenplayWeb.ConfigController do | ||
use ScreenplayWeb, :controller | ||
|
||
alias Screenplay.Config.PermanentConfig | ||
|
||
def add(conn, _params) do | ||
PermanentConfig.add_new_screen() | ||
conn | ||
end | ||
|
||
def edit(conn, _params) do | ||
PermanentConfig.edit_screen() | ||
conn | ||
end | ||
|
||
def delete(conn, _params) do | ||
PermanentConfig.delete_screen() | ||
conn | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters