# *- coding:utf8 *-
from flask import Flask
import flask_restful
from apis.AUsers import AUsers


app = Flask(__name__)
api = flask_restful.Api(app)

api.add_resource(AUsers, "/love/breakfast/users/<string:users>")

if __name__ == '__main__':
    app.run('0.0.0.0', 7443, debug=True)

@app.error_handlers(Exception)
def catchException(error):
    from flask import jsonify
    response = dict(status=0, message="500 Error")
    return jsonify(response), 400



