Skip to content

Commit

Permalink
Merge branch 'api'
Browse files Browse the repository at this point in the history
  • Loading branch information
tavdog committed Feb 12, 2025
2 parents d436e52 + 27bdaba commit cdcfeec
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 13 deletions.
1 change: 1 addition & 0 deletions tronbyt_server/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ def create_app(test_config=None):
app.add_url_rule("/", endpoint="index")



import time

@app.template_filter("timeago")
Expand Down
12 changes: 0 additions & 12 deletions tronbyt_server/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,18 +28,6 @@

bp = Blueprint("api", __name__, url_prefix='/v0')

# @bp.route("/get/<string:device_id>/<string:api_key>", methods=["GET","POST"] )
# def get_apps(device_id):
# # get device based on api_key
# try:
# device = db.get_device_by_id()
# except Exception as e:
# print(str(e))
# abort(404)

# return (str(device.get('apps')))
# # return render_template("manager/index.html", devices=devices, server_root=server_root )

@bp.route("/devices/<string:device_id>/push", methods=["POST"])
def handle_push(device_id):
# Print out the whole request
Expand Down
1 change: 0 additions & 1 deletion tronbyt_server/db.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,6 @@ def get_users_dir():
# print(f"users dir : {current_app.config['USERS_DIR']}")
return current_app.config['USERS_DIR']


def file_exists(file_path):
if os.path.exists(file_path):
return True
Expand Down
Binary file added tronbyt_server/webp/default.webp
Binary file not shown.

0 comments on commit cdcfeec

Please sign in to comment.