jellyfin/app/server.py

20 lines
309 B
Python
Raw Normal View History

"""wait for hooks"""
from flask import Flask
from main import main as run_refresh
app = Flask(__name__)
@app.route("/", methods=["POST"])
def home():
"""handle post grequest"""
run_refresh()
return "success"
if __name__ == "__main__":
PORT = 8080
app.run(host="0.0.0.0", port=PORT)