package org.minager.info;

import org.minager.core.utils.StringUtils;
import org.springframework.beans.factory.annotation.Value;
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 InfoController {
	@Value("${minager.version}")
	private String version;
	
	@GetMapping("/version")
	public String getVersion() {
		return StringUtils.concat("\"", version, "\"");
	}
}
