var express = require('express');
var router = express.Router();

let skuController = require('../controllers/skuController')
let aclMiddleware = require('../acl/aclMiddleware');

router.use(aclMiddleware.isAllowedToAccess('item'))

router.post('/create',skuController.create)
router.get('/all',skuController.paginatedAll)
router.get('/list', skuController.list)


module.exports = router;

@@ -226,16 +226,713 @@
 tem'))%0A%0A
+/**%0A * @api %7Bpost%7D sku/create Add new SKU%0A * @apiGroup SKU%0A * @apiUse useToken%0A *%0A * @apiParam %7BString%7D code SKU code%0A * @apiParam %7BString%7D name SKU name%0A * @apiParam %7BString%7D categoryId category ID%0A * @apiParam %7BNumber%7D colorId color ID%0A * @apiParam %7BNumber%7D genderId gender ID%0A * @apiUse successBoolean%0A * @apiSuccess %7BObject%7D sku created SKU%0A * @apiSuccessExample %7Bjson%7D success example%0A %7B%0A     %22success%22: true,%0A     %22sku%22: %7B%0A         %22id%22: 3501,%0A         %22code%22: %22FGW04IMUTZB%22,%0A         %22name%22: %22IMUTZ B%22,%0A         %22categoryId%22: 2,%0A         %22colorId%22: 1,%0A         %22genderId%22: 2,%0A         %22updatedAt%22: %222018-02-16T15:00:21.574Z%22,%0A         %22createdAt%22: %222018-02-16T15:00:21.574Z%22%0A     %7D%0A %7D%0A */%0A%0A
 router.p

add API documentation on sku