Skip to content

Commit

Permalink
Update dummy_api.py
Browse files Browse the repository at this point in the history
  • Loading branch information
emin-arif authored Dec 3, 2020
1 parent 8ac8da2 commit 676daf2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions api/dummy_api.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
import flask
from flask import jsonify
from flask_cors import CORS#added

app = flask.Flask(__name__)
app.config["DEBUG"] = True
app.config["DEBUG"] = True
CORS(app)#added


@app.route('/stream', methods=['POST'])
Expand All @@ -28,4 +30,4 @@ def queue_get():
def get_volume():
return jsonify({"volume": 5})

app.run()
app.run()

0 comments on commit 676daf2

Please sign in to comment.