Some fixes
This commit is contained in:
@@ -1,11 +1,12 @@
|
||||
import express from 'express';
|
||||
import { authenticate } from '../middleware/authMiddleware.js';
|
||||
import { getClubs, addClub, getClub } from '../controllers/clubsController.js';
|
||||
import { getClubs, addClub, getClub, requestClubAccess } from '../controllers/clubsController.js';
|
||||
|
||||
const router = express.Router();
|
||||
|
||||
router.get('/', authenticate, getClubs);
|
||||
router.post('/', authenticate, addClub);
|
||||
router.get('/:clubid', authenticate, getClub);
|
||||
router.get('/request/:clubid', authenticate, requestClubAccess);
|
||||
|
||||
export default router;
|
||||
@@ -1,8 +1,8 @@
|
||||
import { getClubMembers, getWaitingApprovals } from '../controllers/memberController';
|
||||
import { getClubMembers, getWaitingApprovals } from '../controllers/memberController.js';
|
||||
import express from 'express';
|
||||
import { authenticate } from '../middleware/authMiddleware';
|
||||
import { authenticate } from '../middleware/authMiddleware.js';
|
||||
|
||||
const router = express.Router;
|
||||
const router = express.Router();
|
||||
|
||||
router.post('/', authenticate, getClubMembers);
|
||||
router.get('/notapproved/:id', authenticate, getWaitingApprovals);
|
||||
|
||||
Reference in New Issue
Block a user