-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #32 from ngecu/resolutions
Remaining client Intergration
- Loading branch information
Showing
51 changed files
with
892 additions
and
2,202 deletions.
There are no files selected for viewing
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 @@ | ||
MONGO_URI=mongodb+srv://devngecu:[email protected]/ | ||
MONGO_URI= | ||
JWT_SECRET = "abc123" | ||
BASE_URL=http://localhost:5173/ | ||
|
||
|
@@ -8,21 +8,21 @@ HOST='smtp.gmail.com' | |
SERVICE='gmail' | ||
EMAIL_PORT=587 | ||
SECURE=true | ||
USER=[email protected] | ||
PASS=falvxbsapmgowzel | ||
USER= | ||
PASS= | ||
|
||
|
||
|
||
# SAFARICOM VARIABLES | ||
BUSINESS_SHORT_CODE = 174379 | ||
PASS_KEY = bfb279f9aa9bdbcf158e97dd71a467cd2e0c893059b10f78e6b72ada1ed2c919 | ||
CONSUMER_KEY = X2Z6G1kKFjOQ8ttSGVhhrBH4viOdoQF4 | ||
CONSUMER_SECRET = lvYbjEgi1Qco6E2h | ||
BUSINESS_SHORT_CODE = | ||
PASS_KEY = | ||
CONSUMER_KEY = | ||
CONSUMER_SECRET = | ||
SAFARICOM_PORT = 6000 | ||
PORT = 5000 | ||
|
||
|
||
|
||
cliendID=451025251359-813olgkbnta7djitumcbd7m744ejjnf9.apps.googleusercontent.com | ||
clientSecret=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 | ||
cliendID= | ||
clientSecret= | ||
NODE_ENV=production |
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 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
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
GET http://localhost:5000/api/exam-results | ||
Content-Type: application/json | ||
Authorization:Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjY2MDE2Zjg2MWYxMzBmYzBhY2QxNDRiYSIsImlhdCI6MTcxMTUyNzYwMiwiZXhwIjoxNzE0MTE5NjAyfQ.v4BwGwcund1mLtOp3NOwceH0GN4OOEnEeQy3ZbkD1h8 | ||
|
||
### | ||
POST http://localhost:5000/api/exam-results/student/ | ||
Content-Type: application/json | ||
Authorization:Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjY2MDE2Zjg2MWYxMzBmYzBhY2QxNDRiYSIsImlhdCI6MTcxMTUyNzYwMiwiZXhwIjoxNzE0MTE5NjAyfQ.v4BwGwcund1mLtOp3NOwceH0GN4OOEnEeQy3ZbkD1h8 | ||
|
||
{ | ||
"students":["66016f851f130fc0acd144b6"] | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
import express from 'express' | ||
import { createExam, deleteExam, getAllExams, getExamByCourse, getExamById, updateExam } from '../controllers/examController.js' | ||
import { createExamResult, deleteExamResult, getAllExamResults, getExamResultById, updateExamResult } from '../controllers/examResultController.js' | ||
import { createExamResult, deleteExamResult, getAllExamResults, getExamResultById, getExamResultByStudents, updateExamResult } from '../controllers/examResultController.js' | ||
const router = express.Router() | ||
|
||
import { protect, admin } from '../middleware/authMiddleware.js' | ||
|
||
router.route('/').post(protect, createExamResult) | ||
router.route('/').get(protect, getAllExamResults) | ||
router.route('/:id').get(protect, getExamResultById) | ||
router.route('/student').post(protect, getExamResultByStudents) | ||
router.route('/:id').put(protect, updateExamResult) | ||
router.route('/:id').delete(protect, deleteExamResult) | ||
router.route('/').post(protect, createExamResult) | ||
|
||
export default router |
Oops, something went wrong.