aboutsummaryrefslogblamecommitdiff
path: root/src/background/controllers/FindController.ts
blob: 92dfeb0448429a01f91117542af47b47d9200698 (plain) (tree)
1
2
3
4
5
6
7
8
                                                  
 
             
                                     
                                                  
 
                                 

                                         
                                             

                                                
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);
  }
}