mirror of
https://github.com/tubearchivist/jellyfin.git
synced 2024-11-16 17:00:14 +00:00
20 lines
309 B
Python
20 lines
309 B
Python
|
"""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)
|