Skip to content

Commit

Permalink
fix: sample
Browse files Browse the repository at this point in the history
Signed-off-by: Jan <60812202+janrtvld@users.noreply.github.com>
  • Loading branch information
janrtvld committed Apr 5, 2022
1 parent 62cf2bd commit 57ad5cb
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions packages/rest/samples/utils/GreetingController.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
import { Agent, AgentConfig } from '@aries-framework/core'
import { Get, JsonController } from 'routing-controllers'
import { Inject, Service } from 'typedi'
import { injectable, inject } from 'tsyringe'

@JsonController('/greeting')
@Service()
@injectable()
export class GreetingController {
@Inject()
private agent: Agent

public constructor(agent: Agent) {
public constructor(@inject('agent') agent: Agent) {
this.agent = agent
}

Expand Down

0 comments on commit 57ad5cb

Please sign in to comment.