popping in basic template page stubs
This commit is contained in:
parent
e1bb1b8206
commit
76af0c01d2
4 changed files with 39 additions and 4 deletions
|
|
@ -32,4 +32,16 @@ public class WebHandler {
|
|||
System.out.println("WebHandler::root");
|
||||
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";
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -2,11 +2,14 @@
|
|||
<html>
|
||||
<head>
|
||||
<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>
|
||||
<body>
|
||||
<h1>Spring Boot Form Handling Example</h1>
|
||||
<h2>Spring Form Tags with JSP</h2>
|
||||
<a href="/register">Click here</a>
|
||||
<h1>Hello! Welcome to Spring Bot!</h1>
|
||||
<h2>An Activity Pub 'bot' implementation using Spring Boot</h2>
|
||||
<ul>
|
||||
<li><a href="/makebot">Make Bot</a>
|
||||
<li><a href="/viewbot">View Bot</a>
|
||||
</ul>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
@ -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>
|
||||
Loading…
Add table
Add a link
Reference in a new issue