aboutsummaryrefslogtreecommitdiff
path: root/src/background/controllers/FindController.ts
blob: 1cec962b4987ad80b925023be6ccc2e221b45a23 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import { injectable } from 'tsyringe';
import FindUseCase from '../usecases/FindUseCase';

@injectable()
export default class FindController {
  constructor(
    private findUseCase: FindUseCase,
  ) {
  }

  getKeyword(): Promise<string> {
    return this.findUseCase.getKeyword();
  }

  setKeyword(keyword: string): Promise<any> {
    return this.findUseCase.setKeyword(keyword);
  }
}