You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

123456789101112131415161718192021222324
  1. /**
  2. * Created by robin on 4/22/16.
  3. */
  4. (function()
  5. {
  6. angular.module("appSdk").factory("ImagesDataAccess", ['luticateRequest', function (luticateRequest) {
  7. var DataAccess = {};
  8. var entry_point = "/api/images/";
  9. DataAccess.getAll = function(data, promise)
  10. {
  11. return luticateRequest.get(entry_point, data, promise);
  12. };
  13. DataAccess.upload = function(data, promise)
  14. {
  15. return luticateRequest.post(entry_point + "upload", {image: JSON.stringify(data)}, null, promise);
  16. };
  17. return DataAccess;
  18. }])
  19. })();