move config route under dashboard
it's essentially giving info for various parts of the ui
This commit is contained in:
@@ -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'));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user