refactor for addon/service/container consistency

addon - app manifest thing. part of app lifecycle
services - implementation of addon (may have containers assoc)
This commit is contained in:
Girish Ramakrishnan
2020-04-28 15:17:01 -07:00
parent 73623f2e92
commit efb39fb24b
2 changed files with 40 additions and 39 deletions

View File

@@ -21,7 +21,7 @@ function proxy(req, res, next) {
delete req.headers['authorization'];
delete req.headers['cookies'];
addons.getServiceDetails('mail', 'CLOUDRON_MAIL_TOKEN', function (error, addonDetails) {
addons.getContainerDetails('mail', 'CLOUDRON_MAIL_TOKEN', function (error, addonDetails) {
if (error) return next(BoxError.toHttpError(error));
parsedUrl.query['access_token'] = addonDetails.token;