aboutsummaryrefslogtreecommitdiff
path: root/src/js/Botleagues.js
diff options
context:
space:
mode:
authorCamil Staps2015-05-20 17:05:58 +0200
committerCamil Staps2015-05-20 17:05:58 +0200
commitb52e4935cf8e2ef69d2f9bffaaac45fdde60e6bf (patch)
tree1497272b7bc9887e1485bb82252f10ead0addc46 /src/js/Botleagues.js
parentFix bower bootswatch dependency (diff)
parentFixed gulpfile bug where // in a URL was turned into http:// automatically by... (diff)
Merge branch 'web-only' of ../../Botleagues_old
Diffstat (limited to 'src/js/Botleagues.js')
-rw-r--r--src/js/Botleagues.js26
1 files changed, 0 insertions, 26 deletions
diff --git a/src/js/Botleagues.js b/src/js/Botleagues.js
deleted file mode 100644
index f9d34b7..0000000
--- a/src/js/Botleagues.js
+++ /dev/null
@@ -1,26 +0,0 @@
-function Botleagues(){}
-
-Botleagues.url = 'https://api.local.botleagues.camilstaps.nl';
-
-Botleagues.request = function(user_options, callback) {
- var options = {
- endpoint: null,
- method: 'GET',
- dataType: 'json',
- complete: function(data) {
- callback(data.responseJSON);
- }
- };
- for (var name in user_options) {
- options[name] = user_options[name];
- }
-
- var url = Botleagues.url + '/' + options['endpoint'];
- delete options['endpoint'];
-
- jQuery.ajax(url, options);
-};
-
-Botleagues.redirect = function(user_options) {
- window.location = Botleagues.url + '/' + user_options['endpoint'];
-}; \ No newline at end of file