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

                                     
   
                                 

                                         
                                             

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