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.
 
 

30 lines
674 B

const utils = require('../../utils/utils.js');
const sql = require('../../utils/sql');
const qs = require('querystring');
module.exports=
{
/**
*
* @param postData
* @return {*}
*/
main: function(postData)
{
return new Promise(function(resolve, reject)
{
Promise.all([utils.include("./admin/posts/newPost.html"), processPost(postData)]).then(function(html)
{
resolve(html.join(''));
}).catch(function(error)
{
reject(error);
})
});
}
};