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

This commit is contained in:
2024-07-02 13:48:16 +10:00
parent 230042cc7b
commit b93515ff32
2 changed files with 24 additions and 0 deletions

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():