package eu.bcvsolutions.idm.core.rest;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import eu.bcvsolutions.idm.core.api.rest.BaseController;

/**
 * Root api controller (documentation purpose only) - redirect to swagger ui
 * 
 * @author Radek Tomiška
 *
 */
@Controller
public class RootController implements BaseController {

	@RequestMapping(value = "/", method = RequestMethod.GET)
	public String root() {
		return redirectUrl();
	}
	
	@RequestMapping(value = "/api", method = RequestMethod.GET)
	public String rootApi() {
		return redirectUrl();
	}
	
	private String redirectUrl() {
		return "redirect:/swagger-ui.html";
	}
}

@@ -455,118 +455,8 @@
 er %7B
-%0A%0A%09@RequestMapping(value = %22/%22, method = RequestMethod.GET)%0A%09public String root() %7B%0A%09%09return redirectUrl();%0A%09%7D
 %0A%09%0A%09

remove redirect to documentation from root endpoit - fe + be inside one war