File tree Expand file tree Collapse file tree 1 file changed +0
-16
lines changed Expand file tree Collapse file tree 1 file changed +0
-16
lines changed Original file line number Diff line number Diff line change 1
1
from flask import Blueprint
2
2
from flask import request , jsonify
3
3
4
- # from app.models import Artist, db
5
- # from .errors import unprocessable_entity, error_message
6
- # from .schemas import artist_schema
7
4
from .errors import error_message
8
5
9
6
api = Blueprint ('api' , __name__ )
@@ -35,19 +32,6 @@ def handle_artists():
35
32
handle_artists handles /artists route
36
33
returns list of artists
37
34
"""
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)
51
35
if request .method == 'POST' :
52
36
return 'ok'
53
37
You can’t perform that action at this time.
0 commit comments