Personal blog written from scratch using Node.js, Bootstrap, and MySQL. https://jrtechs.net
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
700 B

  1. const utils = require('../utils/utils.js');
  2. var Promise = require('promise');
  3. module.exports=
  4. {
  5. /**
  6. * Method calls the admin widgets it correct order
  7. *
  8. * @param result
  9. * @param fileName
  10. * @param request
  11. * @return {*|Promise}
  12. */
  13. main: function(result, fileName, request)
  14. {
  15. return new Promise(function(resolve, reject)
  16. {
  17. utils.getPostData(request).then(function (postData)
  18. {
  19. return require("../admin/addCategory.js").main(result, postData);
  20. }).then(function()
  21. {
  22. console.log("admin page ended");
  23. resolve();
  24. });
  25. });
  26. }
  27. };