package egovframework.com.mtdata.main.web;

import javax.annotation.Resource;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import egovframework.com.mtdata.database.service.DatabaseService;

@RestController
@RequestMapping("/api")
public class MainController {
//	private final DatabaseSchemaViewer viewer;
//	private final DatabaseConnectionVO dbConnVO; 이건 차후에 db연결정보를 담은 vo객체를 만든 이후 사용할 것

	@Resource(name = "DatabaseService")
	private DatabaseService dbService;

//	@Autowired
//	public MainController(DatabaseSchemaViewer viewer) {
//		this.viewer = viewer;
//	}

//	@Autowired
//	public MainController(DatabaseSchemaViewer viewer, DatabaseConnectionVO dbConnVO) {
//		this.viewer = viewer;
//		this.dbConn = dbConn;
//	}

//	
//	@GetMapping(value = "/yaml.do")
//	public String yaml(List<DatabaseInfoVO> databaseInfoList) {
//		CreateYaml yaml = new CreateYaml();
//		yaml.createYaml(databaseInfoList);
//		
//		return "test";
//	}

}
