1
0
forked from cgcristi/aCloud

Update app.py

This commit is contained in:
spitkov 2024-09-08 14:04:22 +02:00
parent e5d84d9337
commit f0828703a4

1
app.py
View File

@ -119,6 +119,7 @@ def redirect_vanity(vanity):
'size': os.path.getsize(file_path), 'size': os.path.getsize(file_path),
'modified_at': datetime.fromtimestamp(os.path.getmtime(file_path)).strftime('%Y-%m-%d %H:%M:%S'), 'modified_at': datetime.fromtimestamp(os.path.getmtime(file_path)).strftime('%Y-%m-%d %H:%M:%S'),
'url': url_for('download_file', vanity=vanity) 'url': url_for('download_file', vanity=vanity)
}
@app.route('/<vanity>/raw', methods=['GET']) @app.route('/<vanity>/raw', methods=['GET'])
ef redirect_vanity(vanity): ef redirect_vanity(vanity):
target = data_store.get(vanity) target = data_store.get(vanity)