We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8dffcd2 commit 64f3055Copy full SHA for 64f3055
app/api/share.py
@@ -85,15 +85,15 @@ def get(self):
85
return ShareService.share_pray(prays_decoded)
86
87
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'])
+@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'])
98
99
0 commit comments