Custom method path

I’ve defined a method (‘make_something’) within an api server script. I can call it directly via url but I need to reference the path from within frappe.model.open_mapped_doc. I’ve tried just ‘method: make_something’ but that doesn’t work. What endpoint should I use here?

	make_something: function(frm) {
		frappe.model.open_mapped_doc({
		method: "make_something",
		frm: frm
	    })
	},
1 Like