aboutsummaryrefslogtreecommitdiff
path: root/src/background/controllers/FindController.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/background/controllers/FindController.ts')
-rw-r--r--src/background/controllers/FindController.ts17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/background/controllers/FindController.ts b/src/background/controllers/FindController.ts
new file mode 100644
index 0000000..28959e2
--- /dev/null
+++ b/src/background/controllers/FindController.ts
@@ -0,0 +1,17 @@
+import FindUseCase from '../usecases/FindUseCase';
+
+export default class FindController {
+ private findUseCase: FindUseCase;
+
+ constructor() {
+ this.findUseCase = new FindUseCase();
+ }
+
+ getKeyword(): Promise<string> {
+ return this.findUseCase.getKeyword();
+ }
+
+ setKeyword(keyword: string): Promise<any> {
+ return this.findUseCase.setKeyword(keyword);
+ }
+}