Skip to content

Commit 98baed4

Browse files
committed
fix: restrict method to GET request
1 parent d64488d commit 98baed4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

raven/api/ai_features.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
from raven.ai.handler import get_variables_for_instructions
55

66

7-
@frappe.whitelist()
7+
@frappe.whitelist(methods=["GET"])
88
def get_instruction_preview(instruction: str):
99
"""
1010
Function to get the rendered instructions for the bot

0 commit comments

Comments
 (0)