title: Where to put depends/ dependendies for authentication in Fastapi?
body: <p>I've seen two different methods of using <em>depends</em> in Fastapi authentication:</p>
  <p>Method 1:</p>
  <pre><code>@app.get('/api/user/me')
  async def user_me(user: dict = Depends(auth)):
      return user
  </code></pre>
  <p>and method 2:</p>
  <pre><code>@app.get('/api/user/me', dependencies=[Depends(auth)])
  async def user_me(user: dict):
      return user
  </code></pre>
  <p>What is the difference between method 1 and method 2 and which is better for securing an API i.e. requiring authentication?</p>