mountStartupProcess Handles the startup process of mounted apps by appending sub-app routes, generating app list keys, and processing sub-app routes.
()
| 113 | |
| 114 | // mountStartupProcess Handles the startup process of mounted apps by appending sub-app routes, generating app list keys, and processing sub-app routes. |
| 115 | func (app *App) mountStartupProcess() { |
| 116 | if app.hasMountedApps() { |
| 117 | // add routes of sub-apps |
| 118 | app.mountFields.subAppsProcessed.Do(func() { |
| 119 | app.appendSubAppLists(app.mountFields.appList) |
| 120 | app.mountFields.appListKeysOnce.Do(app.generateAppListKeys) |
| 121 | }) |
| 122 | // adds the routes of the sub-apps to the current application. |
| 123 | app.mountFields.subAppsRoutesAdded.Do(func() { |
| 124 | app.processSubAppsRoutes() |
| 125 | }) |
| 126 | } |
| 127 | } |
| 128 | |
| 129 | // generateAppListKeys generates app list keys for Render, should work after appendSubAppLists |
| 130 | func (app *App) generateAppListKeys() { |
no test coverage detected