Changeset 154b74c
- Timestamp:
- 01/06/23 16:45:39 (23 months ago)
- Branches:
- main
- Children:
- e278ff8
- Parents:
- 5f69a70
- Location:
- FullyStocked/src/main/java/com/bazi/fullystocked/Controller
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
FullyStocked/src/main/java/com/bazi/fullystocked/Controller/LoginController.java
r5f69a70 r154b74c 43 43 request.getSession().setAttribute("user", w); 44 44 request.getSession().setAttribute("location",w.getLocation().getLocationname()+" "+w.getLocation().getCity()); 45 return "redirect:/ homeWorker";45 return "redirect:/worker"; 46 46 } else if (user instanceof Managers) { 47 47 Managers m= (Managers) user; 48 48 request.getSession().setAttribute("user", m); 49 return "redirect:/ homeManager";49 return "redirect:/manager"; 50 50 } 51 51 else if(user instanceof Suppliers) … … 56 56 request.getSession().setAttribute("number",s.getPhone()); 57 57 request.getSession().setAttribute("location",s.getStreet()+" бр."+ s.getStreetnumber()+", "+s.getCity()); 58 return "redirect:/ homeSupplier";58 return "redirect:/supplier"; 59 59 } 60 60 return "redirect:/home"; -
FullyStocked/src/main/java/com/bazi/fullystocked/Controller/ManagerController.java
r5f69a70 r154b74c 6 6 7 7 @Controller 8 @RequestMapping(value ="/ homeManager")8 @RequestMapping(value ="/manager") 9 9 public class ManagerController { 10 10 @GetMapping -
FullyStocked/src/main/java/com/bazi/fullystocked/Controller/WorkerController.java
r5f69a70 r154b74c 10 10 11 11 @Controller 12 @RequestMapping(value ="/ homeWorker")12 @RequestMapping(value ="/worker") 13 13 public class WorkerController { 14 14 @GetMapping
Note:
See TracChangeset
for help on using the changeset viewer.