Skip to content

Commit

Permalink
wip feat(be-ps): Add Game.create API
Browse files Browse the repository at this point in the history
  • Loading branch information
n39i committed Sep 25, 2016
1 parent eebba51 commit d58ca6b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions backend-play-scala/app/controllers/GameController.scala
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,16 @@ package controllers

import javax.inject.{Inject, Singleton}

import play.api.mvc.Controller
import play.api.mvc.{Action, Controller}
import services.GameService

@Singleton
class GameController @Inject()(service: GameService) extends Controller with BaseController {
def create() = ???

def create() = Action { implicit req =>
Ok("")
}

def show(gameId: Int) = ???
def update(gameId: Int) = ???
}
2 changes: 1 addition & 1 deletion backend-play-scala/conf/routes
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ GET / controllers.EntryController.index

GET /bdd/game/:gameId/dice controllers.DiceController.roll(gameId: Int)

#POST /bdd/game controllers.GameController.create
POST /bdd/game controllers.GameController.create
#GET /bdd/game/:gameId controllers.GameController.show(gameId: Int)
#PUT /bdd/game/:gameId controllers.GameController.update(gameId: Int)

Expand Down

0 comments on commit d58ca6b

Please sign in to comment.