move to public repo
This commit is contained in:
12
server/src/routes/games.route.ts
Normal file
12
server/src/routes/games.route.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
import { Router } from "express";
|
||||
const router = Router();
|
||||
|
||||
import * as controller from "../controllers/games.controller";
|
||||
|
||||
router.route("/").get(controller.getActiveGames).post(controller.createGame);
|
||||
|
||||
//router.route("/:id").put(controller.joinGame);
|
||||
|
||||
// todo: api for updating games/moves requiring authentication
|
||||
|
||||
export default router;
|
||||
Reference in New Issue
Block a user