firt commit
This commit is contained in:
commit
c2e63830e1
71 changed files with 9613 additions and 0 deletions
12
server/routes/matches.js
Executable file
12
server/routes/matches.js
Executable file
|
@ -0,0 +1,12 @@
|
|||
import express from 'express';
|
||||
import { getMatches, getMatchDetails } from '../controllers/matchController.js'; // Assuming this controller file/functions
|
||||
|
||||
const router = express.Router();
|
||||
|
||||
// Route to get all matches
|
||||
router.get('/', getMatches);
|
||||
|
||||
// Route to get details for a specific match
|
||||
router.get('/:id', getMatchDetails);
|
||||
|
||||
export default router;
|
Loading…
Add table
Add a link
Reference in a new issue