raphael
5d50bb30e6
- routing setup with path to message_controller - messages api to database updated to function similar to a stack system (push, pop, peek, ..) - rest calls the same as database calls - setup default controller showing text message - parsing database output with Jason to client - adds curl examples
8 lines
133 B
Elixir
8 lines
133 B
Elixir
defmodule BumpWeb.DefaultController do
|
|
use BumpWeb, :controller
|
|
|
|
def index(conn, _params) do
|
|
text conn, "Bump API"
|
|
end
|
|
end
|