title: Express async post request
body: <h1>My Code</h1>
  <p>My code in the backend will get the post data and call a async function</p>
  <pre><code>app.post('/login', async (req, res) =&gt; {
     var mail = decodeURIComponent(req.body.mail), password;
     await bcrypt.hash(decodeURIComponent(req.body.password), saltRounds, function(err, hash) {
         ...
     });
  });
  </code></pre>
  <h1>Problem</h1>
  <p>If I want to start the application I get this warning:</p>
  <blockquote>
  <p>[DEP0013] DeprecationWarning: Calling an asynchronous function without callback is depre</p>
  </blockquote>
  <p>is there a better solution?</p>
  <h1>EDIT</h1>
  <p>I got the same warning if I just do this, but I am not sure how can I make a callback here.</p>
  <pre><code>app.post('/login', async (req, res) =&gt; { res.json({ success: true }); });
  </code></pre>