-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* works one table ayo Co-authored-by: rm41339 <[email protected]> * finished (except header boxes) * Task11/user boilerplate (#12) * update user schema to contain city, state, and isAcceptingRequests * update chapter and user routes * update user schema with isActive field * fix register function for admin to add new chapter * fixing register function * works one table ayo (rebasing) Co-authored-by: rm41339 <[email protected]> * finished (except header boxes) * TO DELETE just fixing my computer * added the two displays top right * deleted comment blocks * Delete .vscode/settings.json * Delete client/tsconfig.json * Delete package.json --------- Co-authored-by: rm41339 <[email protected]> Co-authored-by: kygchng <[email protected]>
- Loading branch information
1 parent
a1d9ed1
commit c1e9a61
Showing
12 changed files
with
4,034 additions
and
3,399 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
import mongoose, { ObjectId } from 'mongoose'; | ||
import mongoose from 'mongoose'; | ||
|
||
enum ChildGender { | ||
'Boy', | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,20 @@ | ||
/* eslint-disable @typescript-eslint/no-unused-vars */ | ||
import express from 'express'; | ||
import { isAdmin } from '../controllers/admin.middleware.ts'; | ||
import { toggleRequest } from '../controllers/user.controller.ts'; | ||
import { | ||
toggleRequest, | ||
getActiveUserCount, | ||
getAcceptingRequestsUserCount | ||
} from '../controllers/user.controller.ts'; | ||
import { isAuthenticated } from '../controllers/auth.middleware.ts'; | ||
import 'dotenv/config'; | ||
|
||
const router = express.Router(); | ||
|
||
router.put('/toggleRequests/:id', isAuthenticated, isAdmin, toggleRequest); | ||
|
||
router.get('/activeUserCount', isAuthenticated, isAdmin, getActiveUserCount); | ||
|
||
router.get('/acceptingRequestsUserCount', isAuthenticated, isAdmin, getAcceptingRequestsUserCount); | ||
|
||
export default router; |
Oops, something went wrong.