async function create(req, res, next) {
  const body = filteredBody(req.body, contants.WHITELIST.posts.create);
  try {
    return res
      .status(HTTPStatus.CREATED)
      .json(await Post.createPost(body, req.user._id));
  } catch (err) {
    err.status = HTTPStatus.BAD_REQUEST;
    return next(err);
  }
}
@api {post} /posts Create a post
@apiDescription Create a post
@apiName createPost
@apiGroup Post

@apiParam (Body) {String} title Post title.
@apiParam (Body) {String} text Post text.

@apiHeader {Authorization} Authorization JWT Token

@apiSuccess {Number} status Status of the Request.
@apiSuccess {Object} post Post created.
@apiSuccess {String} post._id Post _id.
@apiSuccess {String} post.title Post title.
@apiSuccess {String} post.text Post text.
@apiSuccess {String} post.author Post author id.
@apiSuccess {String} post.createdAt Post created date.

@apiParam (Login) {String} pass Only logged in users can do this.

@apiHeaderExample {json} Header-Example:
{
 "AUTHORIZATION": "JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJfaWQiOiI1OTBhMWI3ODAzMDI3N2NiNjQxM2JhZGUiLCJpYXQiOjE0OTM4MzQ2MTZ9.RSlMF6RRwAALZQRdfKrOZWnuHBk-mQNnRcCLJsc8zio"
}

@apiSuccessExample Success-Response:

HTTP/1.1 200 OK

{
 _id: '123',
 title: 'a title',
 text: 'a text',
 createdAt: '2017-05-03',
 author: '123312'
}

@apiErrorExample {json} Unauthorized
   HTTP/1.1 401 Unauthorized