title: curl getting redirect instead of response
body: <p>I've tested my REST API via Postman and tests and got a response, but when I use curl I'm getting</p>
  <pre><code>***@*** MINGW64 ~
  $ curl http://localhost:80/api/v1/stats
    % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                   Dload  Upload   Total   Spent    Left  Speed
  100   267  100   267    0     0   1197      0 --:--:-- --:--:-- --:--:--  1197&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 3.2 Final//EN&quot;&gt;
  &lt;title&gt;Redirecting...&lt;/title&gt;
  &lt;h1&gt;Redirecting...&lt;/h1&gt;
  &lt;p&gt;You should be redirected automatically to target URL: &lt;a href=&quot;http://localhost/api/v1/stats/&quot;&gt;http://localhost/api/v1/stats/&lt;/a&gt;.  If not click the link.
  </code></pre>
  <p>screen from postman
  <a href="https://i.stack.imgur.com/fkNIS.png" rel="nofollow noreferrer">enter image description here</a></p>
  <p>the code:</p>
  <blockquote>
  <p>app.py</p>
  </blockquote>
  <pre><code>app = Flask(__name__)
  
  app.register_blueprint(attack_bp, url_prefix=URL_PATH + '/attack')
  app.register_blueprint(stats_bp, url_prefix=URL_PATH + '/stats')
  </code></pre>
  <blockquote>
  <p>route.py</p>
  </blockquote>
  <pre><code>from flask import Blueprint
  from controllers.Stats import index
  stats_bp = Blueprint('stats_bp', __name__)
  stats_bp.route('/', methods=['GET'])(index)
  </code></pre>
  <blockquote>
  <p>controller.py</p>
  </blockquote>
  <pre><code>from services import Services
  
  s = Services()
  
  
  def index():
      return {&quot;data&quot;: s.getStats()}
  </code></pre>