refactor(routes): Phase 3.6 - standardize sites.js
This commit is contained in:
@@ -358,7 +358,16 @@ async function createApp() {
|
||||
SERVICES_FILE: ctx.SERVICES_FILE,
|
||||
log: ctx.log
|
||||
}));
|
||||
apiRouter.use(sitesRoutes(ctx));
|
||||
apiRouter.use(sitesRoutes({
|
||||
asyncHandler: ctx.asyncHandler,
|
||||
caddy: ctx.caddy,
|
||||
dns: ctx.dns,
|
||||
fetchT: ctx.fetchT,
|
||||
buildDomain: ctx.buildDomain,
|
||||
addServiceToConfig: ctx.addServiceToConfig,
|
||||
siteConfig: ctx.siteConfig,
|
||||
log: ctx.log
|
||||
}));
|
||||
apiRouter.use(credentialsRoutes({
|
||||
credentialManager: ctx.credentialManager,
|
||||
asyncHandler: ctx.asyncHandler
|
||||
|
||||
Reference in New Issue
Block a user