Current section
Files
Jump to
Current section
Files
lib/HTTP/Lightning.HTTP.ex
defmodule Lightning.HTTP do
defmacro __using__(_opts) do
quote do
def init(options) do
IO.puts "starting up Server... "
IO.puts "navigate to localhost:<port> in the browser"
options
end
def call(conn, _opts) do
res = Plug.Conn
route(conn.method, conn.path_info, conn, res)
end
end
end
end