Update app.py
This commit is contained in:
parent
e5d84d9337
commit
f0828703a4
1
app.py
1
app.py
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user