Add screenshots to UI. Still need to implement resizing.

This commit is contained in:
Simo Kinnunen
2014-05-20 11:34:39 +09:00
parent 48726669dc
commit 254b2dc7a3
5 changed files with 49 additions and 19 deletions

View File

@@ -43,15 +43,18 @@ module.exports = function(options) {
, resources: (function() {
var mapped = Object.create(null)
storedFiles.forEach(function(file) {
mapped[file.field] = util.format(
'http://%s:%s/api/v1/resources/%s%s'
, options.publicIp
, options.port
, file.id
, file.name
? util.format('/%s', path.basename(file.name))
: ''
)
mapped[file.field] = {
date: new Date()
, url: util.format(
'http://%s:%s/api/v1/resources/%s%s'
, options.publicIp
, options.port
, file.id
, file.name
? util.format('/%s', path.basename(file.name))
: ''
)
}
})
return mapped
})()