Ignore:
Timestamp:
01/05/23 04:11:40 (23 months ago)
Author:
andrejtodorovski <82031894+andrejtodorovski@…>
Branches:
main
Children:
1bd8d1e
Parents:
7d43957
Message:

Added admin view of pending roles and approve functionality

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/main/java/com/example/autopartz/controller/PartController.java

    r7d43957 r676144b  
    5050    }
    5151    @PostMapping("/repairshopdelivery")
    52     public void setRepairShopDelivery(@RequestParam String name, HttpServletResponse response){
     52    public void setRepairShopDelivery(@RequestParam String name, HttpServletResponse response, HttpSession session){
    5353        // insert into project.repair (vin, id_repair_shop, id_service_book) values (1111,3,1)
     54        session.removeAttribute("order");
    5455        try {
    5556            response.sendRedirect("/");
     
    5960    }
    6061    @PostMapping("/homedelivery")
    61     public void setHomeDelivery(@RequestParam String address, HttpServletResponse response){
     62    public void setHomeDelivery(@RequestParam String address, HttpServletResponse response, HttpSession session){
    6263        // insert into delivery (delivery_status, delivery_address,id_user,id_order) values ('in progress','Aerodrom',4,1)
     64        session.removeAttribute("order");
    6365        try {
    6466            response.sendRedirect("/");
Note: See TracChangeset for help on using the changeset viewer.