-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.js
32 lines (31 loc) · 837 Bytes
/
index.js
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
const asyncHandler = require("./src/async.handler");
const corsHandler = require("./src/cors.handler");
const errorHandler = require("./src/error.handler");
const {
transports,
initLogger,
streamHandler,
logHandler,
} = require("./src/log.handler");
const mongoHandler = require("./src/mongo.handler");
const notFoundHandler = require("./src/notFound.handler");
const { passwordHandler, hashHandler } = require("./src/password.handler");
const { postgresHandler, initPostgres } = require("./src/postgres.handler");
const { initRedis } = require("./src/redis.handler");
module.exports = {
asyncHandler,
errorHandler,
corsHandler,
logHandler,
notFoundHandler,
hashHandler,
passwordHandler,
mongoHandler,
initPostgres,
postgresHandler,
initRedis,
transports,
initLogger,
streamHandler,
logHandler,
};