popping in basic template page stubs

This commit is contained in:
Yvan 2025-01-24 14:56:20 +00:00
parent e1bb1b8206
commit 76af0c01d2
4 changed files with 39 additions and 4 deletions

View file

@ -32,4 +32,16 @@ public class WebHandler {
System.out.println("WebHandler::root"); System.out.println("WebHandler::root");
return "index"; return "index";
} }
// TODO: presumably there is some way to map things like /<string> to capture string and attempt to resolve template
@RequestMapping("/viewbot")
public String viewbot() {
System.out.println("WebHandler::viewbot");
return "viewbot";
}
@RequestMapping("/makebot")
public String makebot() {
System.out.println("WebHandler::makebot");
return "makebot";
}
} }

View file

@ -2,11 +2,14 @@
<html> <html>
<head> <head>
<meta charset="ISO-8859-1"> <meta charset="ISO-8859-1">
<title>Spring Boot Form Handling Example</title> <title>Spring Bot - an Activity Pub bot using the Spring Boot framework</title>
</head> </head>
<body> <body>
<h1>Spring Boot Form Handling Example</h1> <h1>Hello! Welcome to Spring Bot!</h1>
<h2>Spring Form Tags with JSP</h2> <h2>An Activity Pub 'bot' implementation using Spring Boot</h2>
<a href="/register">Click here</a> <ul>
<li><a href="/makebot">Make Bot</a>
<li><a href="/viewbot">View Bot</a>
</ul>
</body> </body>
</html> </html>

View file

@ -0,0 +1,10 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="ISO-8859-1">
<title>Make Bot - Spring Bot - an Activity Pub bot using the Spring Boot framework</title>
</head>
<body>
<h1>Make Yourself a Bot!</h1>
</body>
</html>

View file

@ -0,0 +1,10 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="ISO-8859-1">
<title>View Bot - Spring Bot - an Activity Pub bot using the Spring Boot framework</title>
</head>
<body>
<h1>Pick a Bot!</h1>
</body>
</html>