Last active
January 30, 2016 10:07
-
-
Save MeoBeoI/1785c19ed0c27b2633c4 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.put ('/:companyId/products/:productId' , productApi.updateProduct); | |
router.delete('/:companyId/products/:productId' , productApi.deleteProduct); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment