init: Initial Commit

This commit is contained in:
2024-01-15 20:47:37 -05:00
commit 5a2fd27aa3
28 changed files with 3416 additions and 0 deletions

18
services/backend/app.py Normal file
View File

@@ -0,0 +1,18 @@
from flask import Flask, request
from flask_cors import CORS
from guessit import guessit
app = Flask(__name__)
CORS(app)
@app.route("/")
def hello_world():
filename = request.args.get('filename')
if not filename:
return {"error": "No filename provided"}
return guessit(filename)
if __name__ == '__main__':
app.run(debug=False, host='0.0.0.0')