feat: Add new backend
All checks were successful
Build Docker / Build Image (push) Successful in 36s

This commit is contained in:
2023-11-02 21:06:43 +11:00
parent d32dcc701b
commit 0b6ba921ce
33 changed files with 83 additions and 1752 deletions

View File

@@ -5,6 +5,13 @@ import dotenv
app = Flask(__name__)
dotenv.load_dotenv()
# Custom header
def add_custom_header(response):
response.headers['Onion-Location'] = 'http://wdbrncwefot4hd7bdrz5rzb74mefay7zvrjn2vmkpdm44l7fwnih5ryd.onion/'
return response
app.after_request(add_custom_header)
#Assets routes
@app.route('/assets/<path:path>')
def send_report(path):