Changeset 044bd76 for src/main/java


Ignore:
Timestamp:
01/30/23 23:34:33 (22 months ago)
Author:
Gjoko <goko_kostadinov@…>
Branches:
master
Children:
9280859
Parents:
763289e
Message:

Adding initial calendar version

Location:
src/main/java/edu/gjoko/schedlr
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • src/main/java/edu/gjoko/schedlr/config/AppSecurityConfig.java

    r763289e r044bd76  
    5151                .antMatchers("/homepage").permitAll()
    5252                .antMatchers("/css/**").permitAll()
     53                .antMatchers("/js/**").permitAll()
    5354                .antMatchers("/anonymous*").anonymous()
    5455                .anyRequest()
  • src/main/java/edu/gjoko/schedlr/config/MvcConfig.java

    r763289e r044bd76  
    1515        registry.addViewController("/homepage").setViewName("homepage");
    1616    }
     17
     18
    1719}
  • src/main/java/edu/gjoko/schedlr/controllers/HomePageController.java

    r763289e r044bd76  
    55import org.springframework.web.bind.annotation.GetMapping;
    66import org.springframework.web.bind.annotation.PostMapping;
    7 import org.springframework.web.bind.annotation.RestController;
    87
    9 @RestController(value = "/homepage")
     8@Controller
    109public class HomePageController {
    1110
    12     @GetMapping
     11    @GetMapping(name = "/homepage")
    1312    public String getHomePageTemplate(Model model) {
    1413        return "homepage";
    1514    }
    1615
    17     @PostMapping
     16    @PostMapping(name = "/homepage")
    1817    public String postHomePageTemplate(Model model) {
    1918        return "homepage";
Note: See TracChangeset for help on using the changeset viewer.