Skip to content
This repository was archived by the owner on Feb 18, 2023. It is now read-only.

Commit 236261d

Browse files
initial commit for #24
1 parent 3cda95c commit 236261d

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
defmodule MicroserviceWeb.Receiver do
2+
use MicroserviceWeb, :controller
3+
require Logger
4+
alias Engine.Message
5+
6+
@spec receive(Plug.Conn.t(), any) :: Plug.Conn.t()
7+
def update(conn, params) do
8+
Logger.debug("ProjectController.update/2 called")
9+
IO.inspect(conn, lable: "conn")
10+
IO.inspect(params, lable: "params")
11+
12+
conn
13+
|> put_status(:ok)
14+
end

lib/microservice_web/router.ex

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ defmodule MicroserviceWeb.Router do
2626
pipe_through(:api)
2727

2828
post("/", Receiver, :receive)
29+
post("/configure", ProjectController, :update)
2930
end
3031

3132
# Other scopes may use custom stacks.

0 commit comments

Comments
 (0)