mirror of
https://github.com/danbee/chess
synced 2025-03-04 08:39:06 +00:00
11 lines
205 B
Elixir
11 lines
205 B
Elixir
defmodule Chess.Api.GameController do
|
|
use Chess.Web, :controller
|
|
|
|
alias Chess.Game
|
|
|
|
def show(conn, %{"id" => id}) do
|
|
game = Repo.get!(Game, id)
|
|
render conn, "show.json", game: game
|
|
end
|
|
end
|