add user controller - get users -> user manager html page

This commit is contained in:
2026-05-26 19:11:25 +07:00
parent 4ee4955ede
commit 2b7b190103
2 changed files with 28 additions and 0 deletions

View File

@@ -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";
}
}

View 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>