Last change
on this file was 77205be, checked in by gjoko kostadinov <gjokokostadinov@…>, 11 months ago |
Add entire code
|
-
Property mode
set to
100755
|
File size:
543 bytes
|
Line | |
---|
1 | package edu.gjoko.schedlr.controllers;
|
---|
2 |
|
---|
3 | import org.springframework.stereotype.Controller;
|
---|
4 | import org.springframework.ui.Model;
|
---|
5 | import org.springframework.web.bind.annotation.GetMapping;
|
---|
6 | import org.springframework.web.bind.annotation.PostMapping;
|
---|
7 |
|
---|
8 | @Controller
|
---|
9 | public class HomePageController {
|
---|
10 |
|
---|
11 | @GetMapping(path = "/homepage")
|
---|
12 | public String getHomePageTemplate(Model model) {
|
---|
13 | return "homepage";
|
---|
14 | }
|
---|
15 |
|
---|
16 | @PostMapping(path = "/homepage")
|
---|
17 | public String postHomePageTemplate(Model model) {
|
---|
18 | return "homepage";
|
---|
19 | }
|
---|
20 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.