Commit 95e5eb9f by Johannes Zellner

Rename app/ to frontend/

1 parent 89f67d31
Showing with 3 additions and 3 deletions
......@@ -7,7 +7,7 @@ RUN mkdir -p /app/code
WORKDIR /app/code
ADD src /app/code/src
ADD app /app/code/app
ADD frontend /app/code/frontend
ADD cli /app/code/cli
ADD package.json server.js start.sh README.md /app/code/
......
......@@ -29,13 +29,13 @@ router.delete('/api/files/*', auth.verify, files.del);
router.get ('/api/healthcheck', function (req, res) { res.status(200).send(); });
// welcome screen in case / does not serve up any file yet
router.get('/', function (req, res) { res.status(200).sendFile(path.join(__dirname, '/app/welcome.html')); });
router.get('/', function (req, res) { res.status(200).sendFile(path.join(__dirname, '/frontend/welcome.html')); });
var rootFolder = path.resolve(__dirname, process.argv[2] || 'files');
app.use(morgan('dev'));
app.use(compression());
app.use('/_admin', express.static(__dirname + '/app'));
app.use('/_admin', express.static(__dirname + '/frontend'));
app.use(express.static(rootFolder));
app.use(serveIndex(rootFolder, { icons: true }));
app.use(bodyParser.json());
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!