feat: Add options route
All checks were successful
Build Docker / BuildImage (push) Successful in 44s
All checks were successful
Build Docker / BuildImage (push) Successful in 44s
This commit is contained in:
parent
7e49d23736
commit
860d070c55
@ -187,11 +187,11 @@ def actionsJson():
|
|||||||
}
|
}
|
||||||
]})
|
]})
|
||||||
|
|
||||||
@app.route('/api/donate')
|
@app.route('/api/donate', methods=['GET','OPTIONS'])
|
||||||
def donateAPI():
|
def donateAPI():
|
||||||
data = {
|
data = {
|
||||||
"icon": "https://nathan.woodburn.au/assets/img/profile.png",
|
"icon": "https://nathan.woodburn.au/assets/img/profile.png",
|
||||||
"label": "1 SOL",
|
"label": "Donate to Nathan.Woodburn/",
|
||||||
"title": "Donate to Nathan.Woodburn/",
|
"title": "Donate to Nathan.Woodburn/",
|
||||||
"description": "Student, developer, and crypto enthusiast",
|
"description": "Student, developer, and crypto enthusiast",
|
||||||
"links": {
|
"links": {
|
||||||
@ -227,9 +227,9 @@ def donateAPI():
|
|||||||
def donateAmount(amount):
|
def donateAmount(amount):
|
||||||
data = {
|
data = {
|
||||||
"icon": "https://nathan.woodburn.au/assets/img/profile.png",
|
"icon": "https://nathan.woodburn.au/assets/img/profile.png",
|
||||||
"label": f"{amount} SOL",
|
"label": f"Donate {amount} SOL to Nathan.Woodburn/",
|
||||||
"title": "Donate to Nathan.Woodburn/",
|
"title": "Donate to Nathan.Woodburn/",
|
||||||
"description": "Student, developer, and crypto enthusiast"
|
"description": "Donate {amount} SOL to Nathan.Woodburn/",
|
||||||
}
|
}
|
||||||
return jsonify(data)
|
return jsonify(data)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user