Changeset 154b74c


Ignore:
Timestamp:
01/06/23 16:45:39 (23 months ago)
Author:
Bojan <bojantrpeski123@…>
Branches:
main
Children:
e278ff8
Parents:
5f69a70
Message:

Mappings changes

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  
    4343                request.getSession().setAttribute("user", w);
    4444                request.getSession().setAttribute("location",w.getLocation().getLocationname()+" "+w.getLocation().getCity());
    45                 return "redirect:/homeWorker";
     45                return "redirect:/worker";
    4646            } else if (user instanceof Managers) {
    4747                Managers m= (Managers) user;
    4848                request.getSession().setAttribute("user", m);
    49                 return "redirect:/homeManager";
     49                return "redirect:/manager";
    5050            }
    5151            else if(user instanceof Suppliers)
     
    5656                request.getSession().setAttribute("number",s.getPhone());
    5757                request.getSession().setAttribute("location",s.getStreet()+" бр."+ s.getStreetnumber()+", "+s.getCity());
    58                 return "redirect:/homeSupplier";
     58                return "redirect:/supplier";
    5959            }
    6060            return "redirect:/home";
  • FullyStocked/src/main/java/com/bazi/fullystocked/Controller/ManagerController.java

    r5f69a70 r154b74c  
    66
    77@Controller
    8 @RequestMapping(value ="/homeManager")
     8@RequestMapping(value ="/manager")
    99public class ManagerController {
    1010    @GetMapping
  • FullyStocked/src/main/java/com/bazi/fullystocked/Controller/WorkerController.java

    r5f69a70 r154b74c  
    1010
    1111@Controller
    12 @RequestMapping(value ="/homeWorker")
     12@RequestMapping(value ="/worker")
    1313public class WorkerController {
    1414    @GetMapping
Note: See TracChangeset for help on using the changeset viewer.