1 package io.github.magwas.coder;
2
3 import org.springframework.beans.factory.annotation.Autowired;
4 import org.springframework.stereotype.Service;
5
6 @Service
7 public class ConfigService {
8 @Autowired
9 private ApiKeyConfigService apiKeyConfigService;
10
11 @Autowired
12 private ConsoleInputService consoleInputService;
13
14 public String loadApiKey() throws Exception {
15 return apiKeyConfigService.apply();
16 }
17
18 public ConsoleInputService getConsoleInputService() {
19 return consoleInputService;
20 }
21 }