aboutsummaryrefslogtreecommitdiff
path: root/lolisafe.js
diff options
context:
space:
mode:
authorPitu <[email protected]>2017-02-07 04:32:55 -0300
committerPitu <[email protected]>2017-02-07 04:32:55 -0300
commite05a7c751e499f8b5c347d1ad71692ffa5848442 (patch)
treef2c1cd31749684ca9fa18995a58fd0fbea8bc184 /lolisafe.js
parentMerge pull request #11 from PascalTemel/master (diff)
downloadhost.fuwn.me-e05a7c751e499f8b5c347d1ad71692ffa5848442.tar.xz
host.fuwn.me-e05a7c751e499f8b5c347d1ad71692ffa5848442.zip
Added public album sharing :ok_hand:
Diffstat (limited to 'lolisafe.js')
-rw-r--r--lolisafe.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/lolisafe.js b/lolisafe.js
index dc749ee..34a1a35 100644
--- a/lolisafe.js
+++ b/lolisafe.js
@@ -26,6 +26,7 @@ safe.use(bodyParser.json())
safe.use('/', express.static('./uploads'))
safe.use('/', express.static('./public'))
safe.use('/api', api)
+safe.get('/a/:identifier', (req, res, next) => res.sendFile('album.html', {root: './pages/'}))
for(let page of config.pages){
let root = './pages/'