🐞 fix: Flask app中引用API模型路径

感谢 issue 提出者:[#16](https://github.com/WhaleFell/SMSBoom/issues/16)
This commit is contained in:
WhaleFell
2022-05-16 19:40:25 +08:00
parent e2c2815ba5
commit 654b45e849

View File

@@ -6,7 +6,7 @@ from pathlib import Path
import json
from flask_app import db, app
from flask_app.model import Apis
from utils import API
from utils.models import API
json_path = Path(app.root_path).parent.joinpath(
"api.json")