main
Last change
on this file since b46d1f2 was 245f0ec, checked in by trajchevaM <118018439+trajchevaM@…>, 19 months ago |
Home Controller
|
-
Property mode
set to
100644
|
File size:
455 bytes
|
Rev | Line | |
---|
[f0232fb] | 1 | package finki.paw5.web.controllers;
|
---|
| 2 |
|
---|
| 3 | import org.springframework.stereotype.Controller;
|
---|
| 4 | import org.springframework.web.bind.annotation.GetMapping;
|
---|
| 5 | import org.springframework.web.bind.annotation.RequestMapping;
|
---|
| 6 |
|
---|
| 7 | @Controller
|
---|
| 8 | @RequestMapping("/home")
|
---|
| 9 | public class HomeController {
|
---|
| 10 |
|
---|
| 11 | @GetMapping
|
---|
| 12 | public String getHomePage(){
|
---|
| 13 | return "home";
|
---|
| 14 | }
|
---|
| 15 | @GetMapping("/aboutUs")
|
---|
[245f0ec] | 16 | public String getAboutUsPage(){
|
---|
[f0232fb] | 17 | return "/aboutUs";
|
---|
| 18 | }
|
---|
| 19 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.