MCPcopy
hub / github.com/isso-comments/isso / preview

Method preview

isso/views/comments.py:1152–1158  ·  view source on GitHub ↗
(self, environment, request)

Source from the content-addressed store, hash-verified

1150 """
1151
1152 def preview(self, environment, request):
1153 data = request.json
1154
1155 if data.get("text", None) is None:
1156 raise BadRequest("no text given")
1157
1158 return JSON({"text": self.isso.render(data["text"])}, 200)
1159
1160 """
1161 @api {post} /count Count comments

Callers 1

PostboxFunction · 0.80

Calls 2

getMethod · 0.45
renderMethod · 0.45

Tested by

no test coverage detected