bcgov/common-object-management-service

View on GitHub
app/src/routes/v1/permission/index.js

Summary

Maintainability
A
0 mins
Test Coverage
B
85%
const router = require('express').Router();

// Base Responder
router.get('/', (_req, res) => {
  res.status(200).json({
    endpoints: [
      '/bucket',
      '/invite',
      '/object'
    ]
  });
});

/** Bucket Permission Router */
router.use('/bucket', require('./bucketPermission'));

/** Invite Router */
router.use('/invite', require('./invite'));

/** Object Permission Router */
router.use('/object', require('./objectPermission'));

module.exports = router;