aboutsummaryrefslogtreecommitdiff
path: root/data/stuff/js/util.js
blob: a6826dbc61b04d5c1e47c44aca20fdf802bef61a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
jQuery(function($) {
  "use strict";

  window.send = function(fn, args) {
    return $.ajax({
      url: "/api/" + fn,
      method: 'POST',
      dataType: 'json',
      data: args,
    });
  };
});