1
0
mirror of https://github.com/danbee/chess synced 2025-03-04 08:39:06 +00:00
chess/lib/chess_web/views/api/game_view.ex
Dan Barber 43a4299478
Upgrade to Phoenix 1.3
I've also moved everything around to match the new Phoenix 1.3 directory
structure.
2018-01-12 16:47:26 -05:00

10 lines
163 B
Elixir

defmodule ChessWeb.Api.GameView do
use Chess.Web, :view
alias Chess.Board
def render("show.json", %{game: game}) do
Board.output(game.board)
end
end