| 6 | import {Context, inject} from '@loopback/context'; |
| 7 | |
| 8 | class Greeter { |
| 9 | constructor(@inject('prefix') private prefix: string) {} |
| 10 | greet(name: string) { |
| 11 | return `[${this.prefix}] Hello, ${name}!`; |
| 12 | } |
| 13 | } |
| 14 | |
| 15 | export async function main() { |
| 16 | const appCtx = new Context('app'); |
nothing calls this directly
no outgoing calls
no test coverage detected