diff options
author | Camil Staps | 2015-05-07 12:00:54 +0300 |
---|---|---|
committer | Camil Staps | 2015-05-07 12:00:54 +0300 |
commit | f0218468f76a01e7644bc727ea9502015a5047c3 (patch) | |
tree | 4f28b4bb1b1e8651f6e875877caad6159746581b /src/js/BotleaguesApi.js | |
parent | Working jsonp (diff) |
Register page & more
Diffstat (limited to 'src/js/BotleaguesApi.js')
-rw-r--r-- | src/js/BotleaguesApi.js | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/src/js/BotleaguesApi.js b/src/js/BotleaguesApi.js deleted file mode 100644 index c37adab..0000000 --- a/src/js/BotleaguesApi.js +++ /dev/null @@ -1,19 +0,0 @@ -function BotleaguesApi(){} - -BotleaguesApi.url = 'https://api.local.botleagues.camilstaps.nl'; - -BotleaguesApi.request = function(user_options) { - var options = { - endpoint: null, - method: 'GET', - dataType: 'jsonp' - }; - for (var name in user_options) { - options[name] = user_options[name]; - } - - var url = BotleaguesApi.url + options['endpoint']; - delete options['endpoint']; - - jQuery.ajax(url, options); -}
\ No newline at end of file |