diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2016-05-27 16:23:10 +0200 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2016-05-27 16:23:10 +0200 |
commit | 41a2aee38cf812510010da09de9bae53590ec119 (patch) | |
tree | 79d55d6ae0ef6f66ccb88890cf1ef1946dc65fb4 /server.js | |
parent | 157cb9c9713e08ff70078660a32dd77ecb87eabc (diff) | |
download | PeerTube-41a2aee38cf812510010da09de9bae53590ec119.tar.gz PeerTube-41a2aee38cf812510010da09de9bae53590ec119.tar.zst PeerTube-41a2aee38cf812510010da09de9bae53590ec119.zip |
Follow the angular styleguide for the directories structure
Diffstat (limited to 'server.js')
-rw-r--r-- | server.js | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -64,9 +64,9 @@ const apiRoute = '/api/' + constants.API_VERSION | |||
64 | app.use(apiRoute, routes.api) | 64 | app.use(apiRoute, routes.api) |
65 | 65 | ||
66 | // Static files | 66 | // Static files |
67 | app.use('/app', express.static(path.join(__dirname, '/client'), { maxAge: 0 })) | 67 | app.use('/client', express.static(path.join(__dirname, '/client'), { maxAge: 0 })) |
68 | // 404 for static files not found | 68 | // 404 for static files not found |
69 | app.use('/app/*', function (req, res, next) { | 69 | app.use('/client/*', function (req, res, next) { |
70 | res.sendStatus(404) | 70 | res.sendStatus(404) |
71 | }) | 71 | }) |
72 | 72 | ||