first commit

This commit is contained in:
mol
2023-02-04 00:14:50 +08:00
commit a2f1b6d4fd
51 changed files with 839 additions and 0 deletions

24
test2.py Normal file
View File

@@ -0,0 +1,24 @@
from flask import Flask
app = Flask(__name__)
@app.route("/api/tracks")
def hello_tracks():
return "<p>Hello, tracks!</p>"
@app.route("/api/playlist/<playlist_id>/tracks")
def hello_playlist():
return "<p>Hello, playlist!</p>"
app.run(
host = '127.0.0.1',
port = 7777,
debug = True
)
if __name__== '__main__':
app.run(
host = '127.0.0.1',
port = 7777,
debug = True
)