defmodule MyRouter do get "/some_path", MyModule, :some_fun end defmodule MyRouter do def route(conn, "GET", "/some_path") do MyModule.some_fun(conn) end end
$ mix phoenix.new hello --no-ecto # ... Fetch and install dependencies? [Yn] * running npm install && node node_modules/brunch/bin/brunch build * running mix deps.get We are all set! Run your Phoenix application: $ cd hello $ mix phoenix.server You can also run your app inside IEx (Interactive Elixir) as: $ iex -S mix phoenix.server