AndreNDarcie/gtfs-visualizer

View on GitHub
js/get-api.js

Summary

Maintainability
A
0 mins
Test Coverage
function getApi(url, callback) {
    $.ajax({
        url: url,
        dataType: 'text',
        crossDomain: true,
        type: 'GET',
        success: function(data) {
            result(data, callback);
        }
    });
}

function result(data, callback) {
    callback(data);
}