-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathPageController.java
More file actions
64 lines (56 loc) · 1.31 KB
/
PageController.java
File metadata and controls
64 lines (56 loc) · 1.31 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
package com.digitalsanctuary.spring.demo.controller;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
@Slf4j
@RequiredArgsConstructor
@Controller
public class PageController {
/**
* Home Page.
*
* @return the path to the home page
*/
@GetMapping({"/", "/index.html"})
public String index() {
log.debug("PageController.index: called.");
return "index";
}
/**
* About Page.
*
* @return the path to the about page
*/
@GetMapping("/about.html")
public String about() {
return "about";
}
/**
* Privacy Page.
*
* @return the path to the privacy page
*/
@GetMapping("/privacy.html")
public String privacy() {
return "privacy";
}
/**
* Terms Page.
*
* @return the path to the terms page
*/
@GetMapping("/terms.html")
public String terms() {
return "terms";
}
/**
* MFA WebAuthn Challenge Page.
*
* @return the path to the MFA WebAuthn challenge page
*/
@GetMapping("/user/mfa/webauthn-challenge.html")
public String mfaWebAuthnChallenge() {
return "user/mfa/webauthn-challenge";
}
}