Remove last usage of auth/branding route
This commit is contained in:
@@ -6,7 +6,6 @@ exports = module.exports = {
|
||||
passwordResetRequest,
|
||||
passwordReset,
|
||||
setupAccount,
|
||||
getBranding
|
||||
};
|
||||
|
||||
const assert = require('assert'),
|
||||
@@ -116,14 +115,3 @@ async function setupAccount(req, res, next) {
|
||||
|
||||
next(new HttpSuccess(201, { accessToken }));
|
||||
}
|
||||
|
||||
async function getBranding(req, res, next) {
|
||||
// still used in passwordreset and setupaccount views. we should server render them
|
||||
const result = {
|
||||
cloudronName: await branding.getCloudronName(),
|
||||
footer: await branding.renderFooter(),
|
||||
language: await cloudron.getLanguage(),
|
||||
};
|
||||
|
||||
next(new HttpSuccess(200, result));
|
||||
}
|
||||
|
||||
@@ -97,7 +97,6 @@ async function initializeExpressSync() {
|
||||
router.post('/api/v1/auth/password_reset_request', json, routes.auth.passwordResetRequest);
|
||||
router.post('/api/v1/auth/password_reset', json, routes.auth.passwordReset);
|
||||
router.post('/api/v1/auth/setup_account', json, routes.auth.setupAccount);
|
||||
router.get ('/api/v1/auth/branding', routes.auth.getBranding); // temp route until we server side render password_reset and setup_account
|
||||
|
||||
router.get ('/api/v1/cloudron/status', routes.cloudron.getStatus); // healthcheck
|
||||
router.get ('/api/v1/cloudron/avatar', routes.branding.getCloudronAvatar); // public route for dashboard, email
|
||||
|
||||
Reference in New Issue
Block a user