Ignore:
Timestamp:
10/31/22 23:42:15 (2 years ago)
Author:
Gjoko <goko_kostadinov@…>
Branches:
master
Children:
044bd76
Parents:
204464d
Message:

Fix security

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/main/java/edu/gjoko/schedlr/controllers/HomePageController.java

    r204464d r763289e  
    44import org.springframework.ui.Model;
    55import org.springframework.web.bind.annotation.GetMapping;
     6import org.springframework.web.bind.annotation.PostMapping;
     7import org.springframework.web.bind.annotation.RestController;
    68
    7 @Controller
     9@RestController(value = "/homepage")
    810public class HomePageController {
    911
    10     @GetMapping(value = "/homepage")
     12    @GetMapping
    1113    public String getHomePageTemplate(Model model) {
    1214        return "homepage";
    1315    }
     16
     17    @PostMapping
     18    public String postHomePageTemplate(Model model) {
     19        return "homepage";
     20    }
    1421}
Note: See TracChangeset for help on using the changeset viewer.