Skip to content

Commit

Permalink
support non-anon download links
Browse files Browse the repository at this point in the history
  • Loading branch information
Bret Barker committed Jun 23, 2016
1 parent de9f6b3 commit 1049f1c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions store.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,12 @@ def search():


@app.route('/anon/download-snap/<name>')
def anon_download(name):
# TODO: sanitize names
return send_from_directory(FILES, name)


@app.route('/download-snap/<name>')
def download(name):
# TODO: sanitize names
return send_from_directory(FILES, name)
Expand Down

0 comments on commit 1049f1c

Please sign in to comment.