added data
This commit is contained in:
@@ -10,8 +10,7 @@ import project.validate.validate as validate
|
||||
#import project.models.members as Members
|
||||
from project.models.members import Members
|
||||
from flask_cors import CORS
|
||||
from flasgger import Swagger
|
||||
|
||||
from flasgger import Swagger, swag_from
|
||||
|
||||
#from models.models import User
|
||||
|
||||
@@ -31,7 +30,7 @@ CORS(app)
|
||||
app.config.from_object("project.config.Config")
|
||||
db = SQLAlchemy(app)
|
||||
#jwt_secret = os.getenv("JWT_SECRET")
|
||||
app.config['SECRET_KEY'] = os.getenv("JWT_SECRET") #'thisisourwondefulkey'
|
||||
app.config['SECRET_KEY'] = os.getenv("JWT_SECRET")
|
||||
#print( "aaaa-bbbb--ccccc" )
|
||||
#print( jwt_secret )
|
||||
|
||||
@@ -51,7 +50,7 @@ app.config['SWAGGER'] = {
|
||||
}
|
||||
|
||||
Swagger(app, template=template)
|
||||
|
||||
@swag_from('../../docs/consume.yml')
|
||||
|
||||
def token_required(f):
|
||||
@wraps(f)
|
||||
@@ -168,17 +167,15 @@ def start_login():
|
||||
}, 500
|
||||
|
||||
|
||||
|
||||
@app.route("/panel/auth/register")
|
||||
def start_register():
|
||||
return jsonify(hello="ameye world")
|
||||
|
||||
@app.route("/panel/auth/resetpass")
|
||||
@app.route("/panel/auth/reset")
|
||||
def start_resetpass():
|
||||
return jsonify(hello="ameye world")
|
||||
|
||||
|
||||
|
||||
@app.route("/panel/account")
|
||||
@token_required
|
||||
def panel_account(current_user):
|
||||
@@ -272,11 +269,11 @@ def account_payments(current_user):
|
||||
@app.route("/panel/myproduct/dash")
|
||||
@token_required
|
||||
def myproduct(current_user):
|
||||
dash_data = {
|
||||
"username": "sanyaameye",
|
||||
"account_name": "This is the test account name",
|
||||
"firstname": "TestFirstname",
|
||||
"lastname" : "Testlastname",
|
||||
"email": "bestemail@email.com"
|
||||
myproduct_data = {
|
||||
"banner": "p4.jpg",
|
||||
"description": "Commitment is something that comes from understanding that everything has its price and then having the willingness to pay that price. This is important because nobody wants to put significant effort into something, only to find out after the fact that the price was too high.The price is something not necessarily defined as financial. It could be time, effort, sacrifice, money or perhaps, something else.",
|
||||
"title": "Open EMR",
|
||||
"subscription_text" : "Start with your goals in mind and then work possible.ith yand Goals. If the plan doesn’t support the vision then change it!",
|
||||
"promotion_text": "FAQ pages is for consistency"
|
||||
}
|
||||
return jsonify(dash_data=dash_data)
|
||||
return jsonify(myproduct_data=myproduct_data)
|
||||
Reference in New Issue
Block a user