Skip to content

Commit 64f3055

Browse files
committed
feat: add new social share api
1 parent 8dffcd2 commit 64f3055

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

app/api/share.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -85,15 +85,15 @@ def get(self):
8585
return ShareService.share_pray(prays_decoded)
8686

8787

88-
# @share.route('/social', methods=['POST'])
89-
# class SharePrayByLink(Resource):
90-
# @login_required
91-
# @share.expect(prayListModel)
92-
# def post(self):
93-
# """
94-
# 기도제목을 공유합니다.
95-
# """
96-
# content = request.json
97-
# return ShareService.share_pray(content['pray_id_list'])
88+
@share.route('/social/new', methods=['POST'])
89+
class SharePrayByLink(Resource):
90+
@login_required
91+
@share.expect(prayListModel)
92+
def post(self):
93+
"""
94+
기도제목을 공유합니다.
95+
"""
96+
content = request.json
97+
return ShareService.share_pray(content['pray_id_list'])
9898

9999

0 commit comments

Comments
 (0)