Changeset 46fd0c7 for src/main/java/edu/gjoko/schedlr/controllers
- Timestamp:
- 03/13/23 00:58:07 (20 months ago)
- Branches:
- master
- Children:
- 9050790
- Parents:
- 2b0a4db
- 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 11 11 public class HomePageController { 12 12 13 @GetMapping( name= "/homepage")13 @GetMapping(path = "/homepage") 14 14 public String getHomePageTemplate(Model model, Principal principal) { 15 15 System.out.println(principal); … … 17 17 } 18 18 19 @PostMapping( name= "/homepage")19 @PostMapping(path = "/homepage") 20 20 public String postHomePageTemplate(Model model) { 21 21 return "homepage"; -
src/main/java/edu/gjoko/schedlr/controllers/RegisterController.java
r2b0a4db r46fd0c7 20 20 } 21 21 22 @GetMapping( value="/register_customer")22 @GetMapping(path ="/register_customer") 23 23 public String getCustomerRegisterPage(Model model) { 24 24 model.addAttribute("stakeholder", new Stakeholder()); … … 26 26 } 27 27 28 @PostMapping( value= "/register_customer")28 @PostMapping(path = "/register_customer") 29 29 public String registerCustomer(@ModelAttribute Stakeholder customer, Model model) { 30 30 Stakeholder user = stakeholderService.saveStakeholder(customer); … … 32 32 } 33 33 34 @GetMapping( value= "/register_business")34 @GetMapping(path = "/register_business") 35 35 public String getBusinessRegisterPage(Model model) { 36 36 return "register_business"; … … 39 39 @PostMapping(value = "/register_business") 40 40 public String registerBusiness(Model model) { 41 return "re gister_business";41 return "redirect:login"; 42 42 } 43 43 }
Note:
See TracChangeset
for help on using the changeset viewer.