-
Notifications
You must be signed in to change notification settings - Fork 3
/
index.route.js
47 lines (42 loc) · 2.23 KB
/
index.route.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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
const express = require('express');
const memberRoutes = require('@server/modules/member/member.route');
const daoRoutes = require('@server/modules/dao/dao.route');
const authRoutes = require('@server/modules/auth/auth.route');
const contractRoutes = require('@server/modules/contract/contract.route');
const metadataRoutes = require('@server/modules/metadata/metadata.route');
const transactionRoutes = require('@server/modules/transaction/transaction.route');
const projectRoutes = require('@server/modules/project/project.route');
const safeRoutes = require('@server/modules/safe/safe.route');
const taskRoutes = require('@server/modules/task/task.route');
const utilityRoutes = require('@server/modules/utility/utility.route');
const paymentRoutes = require('@server/modules/payment/payment.route');
const notificationRoutes = require('@server/modules/notification/notification.route');
const discordRoutes = require('@server/modules/discord/discord.route');
const gnosisSafeRoutes = require('@server/modules/gnosisSafeTx/gnosisSafe.route');
const recurringPaymentRoutes = require('@server/modules/RecurringPayment/recurringPayment.route');
const mintPaymentRoutes = require('@server/modules/mintPayment/mintPayment.route');
const contractCtrl = require('@server/modules/contract/contract.controller');
const router = express.Router(); // eslint-disable-line new-cap
// TODO: use glob to match *.route files
/** GET /health-check - Check service health */
router.get('/health-check', (req, res) =>
res.send('OK')
);
router.use('/dao', daoRoutes);
router.use('/member', memberRoutes);
router.use('/contract', contractRoutes);
router.use('/safe', safeRoutes);
router.use('/transaction', transactionRoutes);
router.use('/auth', authRoutes);
router.use('/metadata', metadataRoutes);
router.use('/project', projectRoutes);
router.use('/task', taskRoutes);
router.use('/utility', utilityRoutes);
router.use('/notification', notificationRoutes);
router.use('/discord', discordRoutes);
router.use('/gnosis-safe', gnosisSafeRoutes);
router.use('/payment', paymentRoutes);
router.use('/recurring-payment', recurringPaymentRoutes)
router.use('/mint-payment', mintPaymentRoutes)
router.get('/:contractAddress/:token', contractCtrl.getContractTokenMetadata)
module.exports = router;