diff --git a/app.js b/app.js index 0ed16dd..73d17e9 100644 --- a/app.js +++ b/app.js @@ -40,6 +40,7 @@ app.use((req, res, next) => { logger.info(`[${req.method}] ${req.originalUrl}`); next(); }); + app.use(publicRoute); app.use(verifyToken); app.use(privateRoute); diff --git a/routes/private/containers.js b/routes/private/containers.js index 0f21e14..bc85fc8 100644 --- a/routes/private/containers.js +++ b/routes/private/containers.js @@ -11,13 +11,14 @@ const returnContainersRouter = (io) => { res.locals.formatName = (str) => { return str[0].split('/')[1]; }; - docker.listImages(null, (err, listImages) => { - res.render('containers', - { - containers: containers, - images: listImages - }); - }); + return res.json({success: true, data: containers}); + // docker.listImages(null, (err, listImages) => { + // res.render('containers', + // { + // containers: containers, + // images: listImages + // }); + // }); }); }); diff --git a/web b/web index 87de4bd..9038888 160000 --- a/web +++ b/web @@ -1 +1 @@ -Subproject commit 87de4bdbf3d6cb1b1fecd0c544287e1b6c44ad15 +Subproject commit 90388883dc9af472b2b059bcd5a6e367d8de92c2