Sha256: da2c5b6e6b6101a9274096228173e99a6552b2eeaf76a912eb9b6ab56a2b6737
Contents?: true
Size: 642 Bytes
Versions: 4
Compression:
Stored size: 642 Bytes
Contents
angular.module("oxymoron.services.sign", []) .service('Sign', ['$http', function ($http) { var Sign = this; Sign.out = function () { $http.delete(Routes.destroy_user_session_path()) .success(function () { window.location = "/"; }) } Sign.in = function (form) { $http.post(Routes.user_session_path(), {user: form}) .success(function () { window.location.reload(); }) } Sign.up = function (form) { $http.post(Routes.user_registration_path(), {user: form}) .success(function () { window.location.reload(); }) } }])
Version data entries
4 entries across 4 versions & 1 rubygems