mirror of
https://github.com/aquatix/digimarks.git
synced 2025-12-06 18:35:12 +01:00
Serve the search JS with the correct mimetype
This commit is contained in:
@@ -605,10 +605,12 @@ def bookmarks_js(userkey):
|
||||
Bookmark.userkey == userkey,
|
||||
Bookmark.status == Bookmark.VISIBLE
|
||||
).order_by(Bookmark.created_date.desc())
|
||||
return render_template(
|
||||
resp = make_response(render_template(
|
||||
'bookmarks.js',
|
||||
bookmarks=bookmarks
|
||||
)
|
||||
))
|
||||
resp.headers['Content-type'] = 'text/javascript; charset=utf-8'
|
||||
return resp
|
||||
|
||||
|
||||
@app.route('/r/<userkey>/<urlhash>')
|
||||
|
||||
Reference in New Issue
Block a user