add user controller - get users -> user manager html page
This commit is contained in:
@@ -0,0 +1,18 @@
|
|||||||
|
package com.example.server_site_api.controllers;
|
||||||
|
|
||||||
|
import com.example.server_site_api.models.Users;
|
||||||
|
import org.springframework.stereotype.Controller;
|
||||||
|
import org.springframework.web.bind.annotation.GetMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
import org.springframework.web.bind.annotation.ResponseBody;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
@Controller
|
||||||
|
@RequestMapping("users")
|
||||||
|
public class UserController {
|
||||||
|
@GetMapping
|
||||||
|
private String loadUserManagerPage() {
|
||||||
|
return "UserManager";
|
||||||
|
}
|
||||||
|
}
|
||||||
10
src/main/resources/templates/UserManager.html
Normal file
10
src/main/resources/templates/UserManager.html
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<title>User Manager</title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<h1>Hello</h1>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
Reference in New Issue
Block a user