Fix blueprint route

This commit is contained in:
James Wang 2015-12-23 20:12:23 -05:00
parent 36bdcd5e6f
commit c79489c4cf
2 changed files with 2 additions and 4 deletions

View file

@ -17,4 +17,4 @@ def user_logout():
@blueprint.route("/login", methods=["POST"])
@api_wrapper
def user_login():
pass
pass

View file

@ -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)