( lbApp: RestApplication, dbBackupFile?: string, )
| 43 | * @param server |
| 44 | */ |
| 45 | export async function setupApplication( |
| 46 | lbApp: RestApplication, |
| 47 | dbBackupFile?: string, |
| 48 | ) { |
| 49 | lbApp.bind('datasources.config.db').to({ |
| 50 | name: 'db', |
| 51 | connector: 'memory', |
| 52 | localStorage: '', |
| 53 | file: dbBackupFile ? path.resolve(__dirname, dbBackupFile) : undefined, |
| 54 | }); |
| 55 | |
| 56 | lbApp |
| 57 | .bind('authentication.oauth2.profile.function') |
| 58 | .to(oauth2ProfileFunction); |
| 59 | } |
| 60 | |
| 61 | /** |
| 62 | * Start this application |
no test coverage detected