Last active
January 30, 2016 10:08
-
-
Save MeoBeoI/734bcb61f100ec13a920 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Check companyAccessToken | |
var jwtAuth = require('../../../libs/jwt-auth')(myApp); | |
router.all('/*' , jwtAuth.companyAuth); | |
// Company -> Product API | |
router.get ('/:companyId/products/:productId' , productApi.getProductDetail); | |
router.post('/:companyId/products' , productApi.createProduct); | |
router.post('/:companyId/products/:productId/update' , productApi.updateProduct); | |
router.post('/:companyId/products/delete' , productApi.deleteProducts); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment