example: Add simple router example (#12)
This commit is contained in:
parent
07821494dd
commit
5049e0643a
17 changed files with 621 additions and 0 deletions
18
examples/simple_router/lib/simple_router.ex
Normal file
18
examples/simple_router/lib/simple_router.ex
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
defmodule SimpleRouter do
|
||||
@moduledoc """
|
||||
Documentation for SimpleRouter.
|
||||
"""
|
||||
|
||||
@doc """
|
||||
Hello world.
|
||||
|
||||
## Examples
|
||||
|
||||
iex> SimpleRouter.hello()
|
||||
:world
|
||||
|
||||
"""
|
||||
def hello do
|
||||
:world
|
||||
end
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue