Can't get static files work in version 0.6.1
Example:
from apiflask import APIFlask
app = APIFlask(__name__)
@app.route("/")
def index():
return ""
File Tree:
/app-root
app.py
/static
style.css
And I GET /static/style.css in the browser, I expected to see:
But I got
500 Internal Server Error
What I have tried
- Change APIFlask to Flask, it works well.
- Change to any older version of APIFlask, it doesn't work.
Environment:
- Python version: 3.8.5
- Flask version: 2.0.0
- APIFlask version: 0.6.1
Can't get static files work in version 0.6.1
Example:
File Tree:
And I
GET/static/style.cssin the browser, I expected to see:But I got
What I have tried
Environment: