diff options
| author | Pitu <[email protected]> | 2017-02-07 04:32:55 -0300 |
|---|---|---|
| committer | Pitu <[email protected]> | 2017-02-07 04:32:55 -0300 |
| commit | e05a7c751e499f8b5c347d1ad71692ffa5848442 (patch) | |
| tree | f2c1cd31749684ca9fa18995a58fd0fbea8bc184 /lolisafe.js | |
| parent | Merge pull request #11 from PascalTemel/master (diff) | |
| download | host.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.js | 1 |
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/' |