update game endpoints
for getting all public games and finding specific games with code
This commit is contained in:
@@ -3,9 +3,9 @@ import * as controller from "../controllers/games.controller.js";
|
||||
|
||||
const router = Router();
|
||||
|
||||
router.route("/").get(controller.getActiveGames).post(controller.createGame);
|
||||
router.route("/").get(controller.getActivePublicGames).post(controller.createGame);
|
||||
|
||||
//router.route("/:id").put(controller.joinGame);
|
||||
router.route("/:code").get(controller.getActiveGame);
|
||||
|
||||
// todo: api for updating games/moves requiring authentication
|
||||
|
||||
|
||||
Reference in New Issue
Block a user