Last active
September 7, 2016 11:36
-
-
Save sp90/a0b718646e83d004d1678a4fa3eea384 to your computer and use it in GitHub Desktop.
A small helper to hook up to horizon
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function() { | |
'use strict'; | |
angular.module('myApp') | |
.factory('horizon', horizonFactory); | |
function horizonFactory() { | |
var horizon = Horizon({ | |
host: 'localhost:8181', | |
secure: true, | |
lazyWrites: false, | |
authType: 'unauthenticated', | |
keepalive: 60, | |
}) | |
return horizon; | |
} | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment