move config route under dashboard

it's essentially giving info for various parts of the ui
This commit is contained in:
Girish Ramakrishnan
2023-08-12 21:47:24 +05:30
parent 070f6e5de3
commit 68a3c267e5
10 changed files with 67 additions and 58 deletions
-8
View File
@@ -2,7 +2,6 @@
exports = module.exports = {
getStatus,
getConfig,
updateDashboardDomain,
prepareDashboardDomain,
@@ -34,13 +33,6 @@ async function getStatus(req, res, next) {
next(new HttpSuccess(200, status));
}
async function getConfig(req, res, next) {
const [error, cloudronConfig] = await safe(cloudron.getConfig());
if (error) return next(BoxError.toHttpError(error));
next(new HttpSuccess(200, cloudronConfig));
}
async function updateDashboardDomain(req, res, next) {
if (!req.body.domain || typeof req.body.domain !== 'string') return next(new HttpError(400, 'domain must be a string'));