Browse Source

add findRunningGamesOfUser to ServerApp

feat-serverGameRepresentation
Steffen Nitschke 4 years ago
parent
commit
b96094eead
  1. 1
      fh.fd.ci.server/src/main/java/de/fd/fh/ServerApp.java

1
fh.fd.ci.server/src/main/java/de/fd/fh/ServerApp.java

@ -58,6 +58,7 @@ public class ServerApp
post("/games", gameController::createGame); post("/games", gameController::createGame);
get("/games/:game_id", gameController::findGameById); get("/games/:game_id", gameController::findGameById);
get("/games/findByUser/:user_id", gameController::findRunningGamesOfUser);
get("/hello", (req, res) -> "Hello World"); get("/hello", (req, res) -> "Hello World");

Loading…
Cancel
Save