Fix blueprint route
This commit is contained in:
parent
36bdcd5e6f
commit
c79489c4cf
2 changed files with 2 additions and 4 deletions
|
@ -17,4 +17,4 @@ def user_logout():
|
|||
@blueprint.route("/login", methods=["POST"])
|
||||
@api_wrapper
|
||||
def user_login():
|
||||
pass
|
||||
pass
|
||||
|
|
|
@ -11,7 +11,7 @@ from api.user import blueprint as user_blueprint
|
|||
app = Flask(__name__)
|
||||
app.secret_key = config.SECRET
|
||||
app.register_blueprint(api_blueprint)
|
||||
app.register_blueprint(user_blueprint)
|
||||
app.register_blueprint(user_blueprint, url_prefix="/api/user")
|
||||
|
||||
@app.route("/api")
|
||||
def api_main():
|
||||
|
@ -33,6 +33,4 @@ if __name__ == "__main__":
|
|||
db.init_app(app)
|
||||
db.create_all()
|
||||
|
||||
app.register_blueprint(api.user.blueprint, url_prefix="/api/user")
|
||||
|
||||
app.run(host="0.0.0.0", port=8000)
|
||||
|
|
Loading…
Reference in a new issue