title: Access request body in ServerMiddleware in NUXT
body: <p>Im building a simple interface to SeaTable. For security reasons, I'm not storing the DB and user keys in the code but instead set up a very lightweight API in NUXT using Server Middle wear. All is working as expected except for my login API endpoint.. I need to capture <code>req.data</code> but it's not available. All examples I have seen add body-phraser and Express. I don't wanna use express as I want to keep this as light as possible.</p>
  <pre><code>import fetch from 'node-fetch';
  
  export default {
    path: 'api/auth/login',
    handler: async (req, res) =&gt; {
      let requestOptions = {
          method: &quot;POST&quot;,
          headers: { 
              &quot;username&quot;: usr,
              &quot;password&quot;: psw
              }
      }
      const url = 'https://MY_URL.com/api2/auth-token/'
      const request = await fetch(url, requestOptions)
      const data = await request.json()
      
      res.end( JSON.stringify(data) )
    }
  }
  </code></pre>
  <p>I suppose since this call does not contain any keys i could just make the call on the front end capture the user token and send it to the backend to be stored. Id prefer not to expose even the URL to my seatable instance.</p>