Sha256: e0e100e7d179f359fcbf7581201ca90192d751c8d9dd7dd4e9f2654ec1814010
Contents?: true
Size: 736 Bytes
Versions: 25
Compression:
Stored size: 736 Bytes
Contents
angular.module("oxymoron.services.sign", []) .service('Sign', ['$http', function ($http) { var Sign = this; Sign.out = function (callback) { $http.delete(Routes.destroy_user_session_path()) .success(function () { if (callback) callback() }) } Sign.in = function (user_params, callback) { $http.post(Routes.user_session_path(), {user: user_params}) .success(function () { if (callback) callback(); }) } Sign.up = function (user_params, callback) { $http.post(Routes.user_registration_path(), {user: user_params}) .success(function () { if (callback) callback(); }) } }])
Version data entries
25 entries across 25 versions & 1 rubygems