Commit 5defc2d8 authored by Nick Stenning's avatar Nick Stenning

Install and configure the streamer

parent d40ef973
...@@ -6,6 +6,7 @@ imports = [ ...@@ -6,6 +6,7 @@ imports = [
'h.auth' 'h.auth'
'h.helpers' 'h.helpers'
'h.identity' 'h.identity'
'h.streamer'
] ]
...@@ -24,8 +25,8 @@ resolve = ...@@ -24,8 +25,8 @@ resolve =
configure = [ configure = [
'$locationProvider', '$routeProvider', '$sceDelegateProvider', '$locationProvider', '$routeProvider', '$sceDelegateProvider', 'streamerProvider',
($locationProvider, $routeProvider, $sceDelegateProvider) -> ($locationProvider, $routeProvider, $sceDelegateProvider, streamerProvider) ->
$locationProvider.html5Mode(true) $locationProvider.html5Mode(true)
$routeProvider.when '/a/:id', $routeProvider.when '/a/:id',
...@@ -55,6 +56,8 @@ configure = [ ...@@ -55,6 +56,8 @@ configure = [
# TODO: move all front-end templates into their own directory for safety # TODO: move all front-end templates into their own directory for safety
basePattern = baseURI.replace /\/[^\/]*$/, '/**.html' basePattern = baseURI.replace /\/[^\/]*$/, '/**.html'
$sceDelegateProvider.resourceUrlWhitelist ['self', basePattern] $sceDelegateProvider.resourceUrlWhitelist ['self', basePattern]
streamerProvider.url = baseURI + '__streamer__'
] ]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment