package org.nl.gateway; import org.nl.finnaceapi.dto.Init; import org.nl.finnaceapi.feignApi.FinanceFeignApi; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; @RestController() @RequestMapping("/api") public class InitController { @Autowired private FinanceFeignApi financeFeignApi; @GetMapping("/gateway") public Init getPlan(){ return financeFeignApi.init(); } }