chore: define ping API only once
This commit is contained in:
parent
7ddae5d11b
commit
023897a35e
1 changed files with 1 additions and 6 deletions
|
|
@ -10,7 +10,7 @@ from werkzeug.wrappers import Response
|
|||
import frappe
|
||||
import frappe.sessions
|
||||
import frappe.utils
|
||||
from frappe import _, is_whitelisted
|
||||
from frappe import _, is_whitelisted, ping
|
||||
from frappe.core.doctype.server_script.server_script_utils import get_server_script_map
|
||||
from frappe.monitor import add_data_to_monitor
|
||||
from frappe.utils import cint
|
||||
|
|
@ -260,11 +260,6 @@ def get_attr(cmd):
|
|||
return method
|
||||
|
||||
|
||||
@frappe.whitelist(allow_guest=True)
|
||||
def ping():
|
||||
return "pong"
|
||||
|
||||
|
||||
def run_doc_method(method, docs=None, dt=None, dn=None, arg=None, args=None):
|
||||
"""run a whitelisted controller method"""
|
||||
from inspect import signature
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue