diff options
Diffstat (limited to 'web/static/js/common.js')
-rw-r--r-- | web/static/js/common.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/web/static/js/common.js b/web/static/js/common.js new file mode 100644 index 0000000..4592cbe --- /dev/null +++ b/web/static/js/common.js @@ -0,0 +1,6 @@ +window.ykill.api = function (path, cb) { + new Request.JSON({ + 'url': ykill.api_host + path, + 'onSuccess': cb, + }).get(); +} |