Skip to content

Instantly share code, notes, and snippets.

@tonylampada
Created February 27, 2017 22:12

Revisions

  1. tonylampada created this gist Feb 27, 2017.
    8 changes: 8 additions & 0 deletions snippet_api.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,8 @@
    //real api
    var api = {
    list_cameras: list_cameras,
    //other methods…
    };
    function list_cameras(filters){
    return AppAjax.get(/api/list_cameras’, {filters: angular.toJson(filters)});
    }