Skip to content

Add game state#7

Merged
kitallis merged 11 commits intoalphafrom
game-state
May 31, 2020
Merged

Add game state#7
kitallis merged 11 commits intoalphafrom
game-state

Conversation

@kitallis
Copy link
Copy Markdown
Contributor

Reopening this PR over #4 because we renamed the base branch from cljs to alpha.

  • Rename RoomChannel to GameChannel
  • Make the handlers room-sensitive

Copy link
Copy Markdown
Contributor

@yudistrange yudistrange left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure if the change in the router module was responsible for the MIME error you were facing.

But other than that, the changes look good for a merge.

end

scope "/", PencilSpaceServerWeb do
pipe_through :api
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be :browser instead of :api

use PencilSpaceServerWeb, :controller
alias PencilSpaceServer.{GameMonitor}
alias PencilSpaceServer.Game
import PencilSpaceServerWeb.ControllerHelpers
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

MINOR: You can also specify the functions that are being imported from this module.

https://elixir-lang.org/getting-started/alias-require-and-import.html#import

@kitallis kitallis merged commit 1b785b3 into alpha May 31, 2020
@kitallis kitallis deleted the game-state branch May 31, 2020 15:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants