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