weekly release 5.0dev
[moodle.git] / mod / lti / amd / build / tool_proxy.min.js
blob9039dea8524f41500cd0184b4d53b21d441b25e8
1 /**
2  * Provides an interface for a tool proxy in the Moodle server.
3  *
4  * @module     mod_lti/tool_proxy
5  * @copyright  2015 Ryan Wyllie <ryan@moodle.com>
6  * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
7  * @since      3.1
8  */
9 define("mod_lti/tool_proxy",["core/ajax","core/notification"],(function(ajax,notification){return{query:function(args){var request={methodname:"mod_lti_get_tool_proxies",args:args||{}},promise=ajax.call([request])[0];return promise.fail(notification.exception),promise},delete:function(id){var request={methodname:"mod_lti_delete_tool_proxy",args:{id:id}},promise=ajax.call([request])[0];return promise.fail(notification.exception),promise},create:function(args){var request={methodname:"mod_lti_create_tool_proxy",args:args};return ajax.call([request])[0]}}}));
11 //# sourceMappingURL=tool_proxy.min.js.map