forked from apaardahal/Member_Management_System
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathHttp.js
More file actions
57 lines (53 loc) · 1.07 KB
/
Http.js
File metadata and controls
57 lines (53 loc) · 1.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
/**
* Initializing Environment Variable
*/
require('dotenv').config();
const { SELECT_LIMIT } = process.env;
/**
* Validation Handler
*/
const { check, validationResult } = require('express-validator');
/**
* Query Execuator
*/
const queryExecuator = require('../Database/QueryExe');
/**
* Error Logger Component
*/
const { Error } = require('../Config/Logs');
/**
* Route and Validator Export
*
* Made with ❤️ by Dibesh Raj Subedi
*
* Contributors :
*
* @description Export Http Requirements
*/
module.exports = {
/**
* Express Router Set
*/
express: require("express"),
check,
validationResult,
/**
* Query List
*/
queryBox: require('../Database/Queries.json'),
Exe: new queryExecuator(),
Error,
/**
* Extracting Middleware
*/
isLoggedIn: require('../Middlewares/isLoggedIn'),
/**
* Extracting Access handler
*/
AllowAccess: require('../Middlewares/AccessHandler'),
SELECT_LIMIT,
/**
* Bcrypt Module to handle encryption
*/
bcrypt: require('bcryptjs')
}