Project

General

Profile

1
package eu.dnetlib.organizations.controller;
2

    
3
import org.springframework.stereotype.Controller;
4
import org.springframework.web.bind.annotation.GetMapping;
5
import org.springframework.web.bind.annotation.RequestMapping;
6
import org.springframework.web.bind.annotation.RequestMethod;
7

    
8
@Controller
9
public class HomeController {
10

    
11
	@GetMapping("/")
12
	public String home() {
13
		return "/user";
14
	}
15

    
16
	@GetMapping("/login")
17
	public String login() {
18
		return "/login";
19
	}
20

    
21
	@GetMapping("/403")
22
	public String error403() {
23
		return "/403";
24
	}
25

    
26
	@RequestMapping(value = { "/doc", "/swagger" }, method = RequestMethod.GET)
27
	public String apiDoc() {
28
		return "redirect:swagger-ui.html";
29
	}
30

    
31
}
(1-1/5)