MCPcopy Create free account
hub / github.com/loopbackio/loopback-next / setupApplication

Function setupApplication

examples/passport-login/src/index.ts:45–59  ·  view source on GitHub ↗
(
  lbApp: RestApplication,
  dbBackupFile?: string,
)

Source from the content-addressed store, hash-verified

43 * @param server
44 */
45export 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

Callers 1

startApplicationFunction · 0.70

Calls 3

toMethod · 0.80
resolveMethod · 0.80
bindMethod · 0.45

Tested by

no test coverage detected