Skip to content

Commit

Permalink
feat: add new social share api
Browse files Browse the repository at this point in the history
  • Loading branch information
baebae02 committed Nov 23, 2023
1 parent 8dffcd2 commit 64f3055
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions app/api/share.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,15 +85,15 @@ def get(self):
return ShareService.share_pray(prays_decoded)


# @share.route('/social', methods=['POST'])
# class SharePrayByLink(Resource):
# @login_required
# @share.expect(prayListModel)
# def post(self):
# """
# 기도제목을 공유합니다.
# """
# content = request.json
# return ShareService.share_pray(content['pray_id_list'])
@share.route('/social/new', methods=['POST'])
class SharePrayByLink(Resource):
@login_required
@share.expect(prayListModel)
def post(self):
"""
기도제목을 공유합니다.
"""
content = request.json
return ShareService.share_pray(content['pray_id_list'])


0 comments on commit 64f3055

Please sign in to comment.