-
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.
- Loading branch information
1 parent
5201dda
commit 2229fcf
Showing
5 changed files
with
61 additions
and
4 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 |
---|---|---|
|
@@ -3,3 +3,4 @@ | |
/deps | ||
erl_crash.dump | ||
*.ez | ||
*.swp |
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 |
---|---|---|
@@ -1,2 +1,19 @@ | ||
defmodule Loggex do | ||
require IEx | ||
use Plug.Router | ||
|
||
plug :match | ||
plug :dispatch | ||
|
||
def start do | ||
Plug.Adapters.Cowboy.http Loggex, [], port: 6438 | ||
end | ||
|
||
def stop do | ||
Plug.Adapters.Cowboy.shutdown Loggex.HTTP | ||
end | ||
post "/log" do | ||
send_resp(conn, 200, "No Response") | ||
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
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,19 @@ | ||
%{"certifi": {:hex, :certifi, "0.3.0"}, | ||
"connection": {:hex, :connection, "1.0.2"}, | ||
"cowboy": {:hex, :cowboy, "1.0.4"}, | ||
"cowlib": {:hex, :cowlib, "1.0.2"}, | ||
"db_connection": {:hex, :db_connection, "0.2.3"}, | ||
"decimal": {:hex, :decimal, "1.1.1"}, | ||
"ecto": {:hex, :ecto, "1.1.3"}, | ||
"exjsx": {:hex, :exjsx, "3.2.0"}, | ||
"hackney": {:hex, :hackney, "1.4.8"}, | ||
"httpoison": {:hex, :httpoison, "0.8.1"}, | ||
"idna": {:hex, :idna, "1.0.3"}, | ||
"jsx": {:hex, :jsx, "2.6.2"}, | ||
"mimerl": {:hex, :mimerl, "1.0.2"}, | ||
"plug": {:hex, :plug, "1.1.1"}, | ||
"poolboy": {:hex, :poolboy, "1.5.1"}, | ||
"postgrex": {:hex, :postgrex, "0.11.1"}, | ||
"ranch": {:hex, :ranch, "1.2.1"}, | ||
"ssl_verify_hostname": {:hex, :ssl_verify_hostname, "1.0.5"}, | ||
"uuid": {:hex, :uuid, "0.1.5"}} |
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