feat: Add XRP toml
All checks were successful
Build Docker / BuildImage (push) Successful in 34s

This commit is contained in:
Nathan Woodburn 2024-07-02 13:48:16 +10:00
parent 230042cc7b
commit b93515ff32
Signed by: nathanwoodburn
GPG Key ID: 203B000478AD0EF1
2 changed files with 24 additions and 0 deletions

View File

@ -0,0 +1,12 @@
[METADATA]
modified = 2024-07-02T00:00:00.000Z
expires = 2050-07-02T00:00:00.000Z
[[ACCOUNTS]]
address = "rKzdnYvwDyeki5VCgMwjuofjBjAbg3DJnB"
desc = "Nathan.Woodburn/ (Twitter: @nathanwoodburn)"
[[PRINCIPALS]]
name = "Nathan Woodburn"
email = "xrp@nathan.woodburn.au"
social_1 = "https://nathan.woodburn.au"

View File

@ -137,6 +137,18 @@ def nostr():
}
})
@app.route('/.well-known/xrp-ledger.toml')
def xrpLedger():
# Create a response with the xrp-ledger.toml file
with open('.well-known/xrp-ledger.toml') as file:
toml = file.read()
response = make_response(toml, 200, {'Content-Type': 'application/toml'})
# Set cors headers
response.headers['Access-Control-Allow-Origin'] = '*'
return response
@app.route('/manifest.json')
def manifest():