Merge branch 'guice-fix' into 'main'
Fixed httpclient implementation in guice See merge request cse1105/2025-2026/teams/csep-team-76!71
This commit is contained in:
commit
5388c52aaa
1 changed files with 1 additions and 1 deletions
|
|
@ -52,7 +52,7 @@ public class MyModule implements Module {
|
|||
binder.bind(WebSocketUtils.class).in(Scopes.SINGLETON);
|
||||
binder.bind(NutritionDetailsCtrl.class).in(Scopes.SINGLETON);
|
||||
binder.bind(NutritionViewCtrl.class).in(Scopes.SINGLETON);
|
||||
binder.bind(HttpClient.class).in(Scopes.SINGLETON);
|
||||
binder.bind(HttpClient.class).toInstance(HttpClient.newHttpClient());
|
||||
binder.bind(ConfigService.class).toInstance(new ConfigService(Path.of("config.json")));
|
||||
binder.bind(new TypeLiteral<WebSocketDataService<Long, Recipe>>() {}).toInstance(
|
||||
new WebSocketDataService<>()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue