Last change
on this file was 31d67c0, checked in by zlatko2810 <zlatko.stojanovski@…>, 22 months ago |
proekt
|
-
Property mode
set to
100644
|
File size:
549 bytes
|
Rev | Line | |
---|
[31d67c0] | 1 | package com.proekt.Controller;
|
---|
| 2 |
|
---|
| 3 |
|
---|
| 4 | import org.springframework.stereotype.Controller;
|
---|
| 5 | import org.springframework.ui.Model;
|
---|
| 6 | import org.springframework.web.bind.annotation.GetMapping;
|
---|
| 7 |
|
---|
| 8 | @Controller
|
---|
| 9 | public class Blank {
|
---|
| 10 |
|
---|
| 11 |
|
---|
| 12 | @GetMapping("/contact")
|
---|
| 13 | public String getViewHome(Model model) {
|
---|
| 14 |
|
---|
| 15 | model.addAttribute("bodyContent","contact");
|
---|
| 16 | return "master-template";
|
---|
| 17 | }
|
---|
| 18 | @GetMapping("/about")
|
---|
| 19 | public String getViewHome2(Model model) {
|
---|
| 20 |
|
---|
| 21 | model.addAttribute("bodyContent","about");
|
---|
| 22 | return "master-template";
|
---|
| 23 | }
|
---|
| 24 |
|
---|
| 25 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.