|
|
|
|
|
by danneu
3349 days ago
|
|
I haven't used it, but it's still the same pseudocode: defmodule HelloPhoenix.UserController do
def index(conn, _params) do
users = HelloPhoenix.Repo.all(HelloPhoenixUser)
render conn, "index.json", users: users
end
end
For CRUD, I'm not too convinced it's much different than what you'd be doing anywhere else.For websockets, streaming, and other stuff beyond request -> database query -> response, then competing abstractions get more interesting. |
|