-
Notifications
You must be signed in to change notification settings - Fork 2
/
api.routes.js
26 lines (18 loc) · 954 Bytes
/
api.routes.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
const accountRoutes = require('./src/entities/accounts/account.routes');
const orderRoutes = require('./src/entities/orders/order.routes');
const offerRoutes = require('./src/entities/offers/offer.routes');
const consumerRoutes = require('./src/entities/consumers/consumer.routes');
const categoryRoutes = require('./src/entities/categories/category.routes');
const subcategoryRoutes = require('./src/entities/subcategories/subcategory.routes');
const geoRoutes = require('./src/entities/geoVendor/geoVendor.routes');
const promoRoutes = require('./src/entities/promos/promo.routes');
module.exports = router => {
router.use('/accounts', accountRoutes);
router.use('/orders', orderRoutes);
router.use('/offers', offerRoutes);
router.use('/consumers', consumerRoutes);
router.use('/categories', categoryRoutes);
router.use('/subcategories', subcategoryRoutes);
router.use('/geo', geoRoutes);
router.use('/promos', promoRoutes);
};