first commit
This commit is contained in:
24
test2.py
Normal file
24
test2.py
Normal 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
|
||||
)
|
||||
Reference in New Issue
Block a user