Skip to content

Commit 18b6306

Browse files
authored
Merge pull request caprover#1330 from jonaskuske/patch-1
fix: provide configured captainSubDomain to frontend
2 parents 122a2cc + f174fee commit 18b6306

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/routes/user/apps/appdefinition/AppDefinitionRouter.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ router.get('/', function (req, res, next) {
9494
baseApi.data = {
9595
appDefinitions: appsArray,
9696
rootDomain: dataStore.getRootDomain(),
97+
captainSubDomain: CaptainConstants.configs.captainSubDomain,
9798
defaultNginxConfig: defaultNginxConfig,
9899
}
99100

src/routes/user/system/SystemRouter.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,7 @@ router.get('/info/', function (req, res, next) {
133133
rootDomain: dataStore.hasCustomDomain()
134134
? dataStore.getRootDomain()
135135
: '',
136+
captainSubDomain: CaptainConstants.configs.captainSubDomain,
136137
}
137138
})
138139
.then(function (data) {

0 commit comments

Comments
 (0)