Skip to content

Commit

Permalink
refactor: delete base64 encoding api
Browse files Browse the repository at this point in the history
  • Loading branch information
baebae02 committed Nov 9, 2023
1 parent 424d361 commit aeb8efd
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions app/api/pray.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,19 +21,6 @@
prayListSortBy = pray.parser()
prayListSortBy.add_argument('sort_by', type=str, required=False, help='date or cnt', location='args', default='date')

@pray.route('/base64', methods=['GET'])
class PrayBase64(Resource):
def get(self):
"""
기도제목을 base64로 인코딩하여 반환합니다.
"""
pray = P.query.all()
for pray in pray:
pray.title = base64.b64encode(pray.title.encode('utf-8')).decode('utf-8')
pray.target = base64.b64encode(pray.target.encode('utf-8')).decode('utf-8')
db.session.commit()
return

@pray.route('', methods=['POST', 'GET'])
class Pray(Resource):
@pray.expect(prayModel)
Expand Down

0 comments on commit aeb8efd

Please sign in to comment.