Move source/documents/* to source/

This commit is contained in:
Vit Brunner
2014-10-29 12:19:07 +01:00
parent 6c4d6bda84
commit f4b77f6215
31 changed files with 1 additions and 1 deletions
+17
View File
@@ -0,0 +1,17 @@
angular.module("sideBySide").factory "fetch", ['$http', '$q', 'readerFactory', ($http, $q, readerFactory) ->
# Fetch
#
# @param file [String] Path to config file
# @return [Object] Promises and heading
(file = "/config.json") ->
$http.get(file).then (config) ->
promises = config.data.files.map (poem) ->
$http.get(poem).then (response) ->
readerFactory(poem) response.data
{
fetchPoems: $q.all promises
heading: config.data.heading
active: config.data.active
}
]