mirror of
https://github.com/danbee/chess
synced 2025-03-04 08:39:06 +00:00
I've also moved everything around to match the new Phoenix 1.3 directory structure.
10 lines
163 B
Elixir
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
|