Ignore:
Timestamp:
03/13/23 00:58:07 (20 months ago)
Author:
Gjoko Kostadinov <gjoko.kostadinov@…>
Branches:
master
Children:
9050790
Parents:
2b0a4db
Message:

Add admin page initial work.

Location:
src/main/java/edu/gjoko/schedlr/controllers
Files:
2 added
2 edited

Legend:

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

    r2b0a4db r46fd0c7  
    1111public class HomePageController {
    1212
    13     @GetMapping(name = "/homepage")
     13    @GetMapping(path = "/homepage")
    1414    public String getHomePageTemplate(Model model, Principal principal) {
    1515        System.out.println(principal);
     
    1717    }
    1818
    19     @PostMapping(name = "/homepage")
     19    @PostMapping(path = "/homepage")
    2020    public String postHomePageTemplate(Model model) {
    2121        return "homepage";
  • src/main/java/edu/gjoko/schedlr/controllers/RegisterController.java

    r2b0a4db r46fd0c7  
    2020    }
    2121
    22     @GetMapping(value ="/register_customer")
     22    @GetMapping(path ="/register_customer")
    2323    public String getCustomerRegisterPage(Model model) {
    2424        model.addAttribute("stakeholder", new Stakeholder());
     
    2626    }
    2727
    28     @PostMapping(value = "/register_customer")
     28    @PostMapping(path = "/register_customer")
    2929    public String registerCustomer(@ModelAttribute Stakeholder customer, Model model) {
    3030        Stakeholder user = stakeholderService.saveStakeholder(customer);
     
    3232    }
    3333
    34     @GetMapping(value = "/register_business")
     34    @GetMapping(path = "/register_business")
    3535    public String getBusinessRegisterPage(Model model) {
    3636        return "register_business";
     
    3939    @PostMapping(value = "/register_business")
    4040    public String registerBusiness(Model model) {
    41         return "register_business";
     41        return "redirect:login";
    4242    }
    4343}
Note: See TracChangeset for help on using the changeset viewer.