File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11from flask import Blueprint
22from flask import request , jsonify
33
4- # from app.models import Artist, db
5- # from .errors import unprocessable_entity, error_message
6- # from .schemas import artist_schema
74from .errors import error_message
85
96api = Blueprint ('api' , __name__ )
@@ -35,19 +32,6 @@ def handle_artists():
3532 handle_artists handles /artists route
3633 returns list of artists
3734 """
38- # if request.method == 'POST':
39- # artist, errors = artist_schema.load(request.form, session=db.session)
40- # if errors:
41- # return unprocessable_entity(errors)
42-
43- # db.session.add(artist)
44- # db.session.commit()
45-
46- # return jsonify(artist_schema.dump(artist).data)
47-
48- # artists = Artist.query.order_by('id').items
49-
50- # return jsonify(artist_schema.dump(artists, many=True).data)
5135 if request .method == 'POST' :
5236 return 'ok'
5337
You can’t perform that action at this time.
0 commit comments