Post http request to my wix site.

@raphaelhuotmtl Try this:

export function post_addUserLeaderboard(request) {
   let options = {
      "headers": {
      "Content-Type": "application/json"
      }
   };
   return request.body.json()
   .then( (body) => {
      let leaderboardEntry = {
         "title": body.title,
         "score": body.score
      }
      return wixData.insert("fastLifeLeaderboard", leaderboardEntry)
      .then( (result) => {
         options.body = {
            "inserted": result
         };
         return created(options);
      })
      .catch( (error) => {
         options.body = {
             "error": error
         };
         return serverError(options);
      });
    })
    .catch( (error) => {
        options.body = {
           "error": error
             };
        return serverError(options);
     });
}