Last change
on this file since 763289e was 763289e, checked in by Gjoko <goko_kostadinov@…>, 20 months ago |
Fix security
|
-
Property mode
set to
100644
|
File size:
591 bytes
|
Rev | Line | |
---|
[204464d] | 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;
|
---|
[763289e] | 6 | import org.springframework.web.bind.annotation.PostMapping;
|
---|
| 7 | import org.springframework.web.bind.annotation.RestController;
|
---|
[204464d] | 8 |
|
---|
[763289e] | 9 | @RestController(value = "/homepage")
|
---|
[204464d] | 10 | public class HomePageController {
|
---|
| 11 |
|
---|
[763289e] | 12 | @GetMapping
|
---|
[204464d] | 13 | public String getHomePageTemplate(Model model) {
|
---|
| 14 | return "homepage";
|
---|
| 15 | }
|
---|
[763289e] | 16 |
|
---|
| 17 | @PostMapping
|
---|
| 18 | public String postHomePageTemplate(Model model) {
|
---|
| 19 | return "homepage";
|
---|
| 20 | }
|
---|
[204464d] | 21 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.