Skip to content

Commit

Permalink
[droidapi]: add updates route
Browse files Browse the repository at this point in the history
  • Loading branch information
0xf104a committed Nov 13, 2024
1 parent 83f57e9 commit 336a115
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/droidapi/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
# Add your endpoints specification imports here
from droidapi.endpoints.update import *
from droidapi.endpoints.status import *
from droidapi.endpoints.media import *
from droidapi.helpers.authorization import generate_token

DEBUG = False
Expand Down
7 changes: 7 additions & 0 deletions src/droidapi/endpoints/media.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
from flask import send_from_directory

from droidapi.app import app

@app.route("/updates/<path:path>")
def media(path):
return send_from_directory(app.config['UPLOAD_FOLDER'], path)

0 comments on commit 336a115

Please sign in to comment.