function getWissle(id) {
  var $modal = new Foundation.Reveal($('#modal-show-wissle'));

  $.ajax({
    url: '/api/wissles',
    dataType: 'json',
    contentType: 'application/json',
    headers: {
      'Authorization': window.localStorage.getItem('user.uuid')
    },
    success: function(data) {
      $modal.open();

      var wissle = data[0].data;

      $('#modal-show-wissle-text').html(wissle.text);
      $('#modal-show-wissle-user').html(wissle.user.data.username + ' (' + wissle.user.data.age + ')')
      $('#modal-show-wissle-latitude').html(wissle.latitude);
      $('#modal-show-wissle-longitude').html(wissle.longitude);
    },
    error: function(error) {
      showAlert(error);
    }
  })
}

function createWissle(text, callback) {
  $.ajax({
    url: '/api/wissles',
    dataType: 'json',
    contentType: 'application/json',
    method: 'POST',
    headers: {
      'Authorization': window.localStorage.getItem('user.uuid')
    },
    data: JSON.stringify({
      data: {
        text: text,
        latitude: position.current.getPosition().lat(),
        longitude: position.current.getPosition().lng(),
      }
    }),
    success: callback,
    error: function(error) {
      showAlert(error);
    }
  })
}

@@ -1,16 +1,402 @@
+function getWissles(callback) %7B%0A  $.ajax(%7B%0A    url: '/api/wissles',%0A    dataType: 'json',%0A    contentType: 'application/json',%0A    headers: %7B%0A      'Authorization': window.localStorage.getItem('user.uuid')%0A    %7D,%0A    success: function(data) %7B%0A      var wissles = data.map(w =%3E w.data);%0A%0A      callback(wissles);%0A    %7D,%0A    error: function(error) %7B%0A      showAlert(error);%0A    %7D%0A  %7D)%0A%7D%0A%0A
 function getWiss

Add getWissles API call