Ignore:
Timestamp:
03/13/23 23:30:41 (20 months ago)
Author:
Gjoko Kostadinov <gjoko.kostadinov@…>
Branches:
master
Children:
8bcd64c
Parents:
46fd0c7
Message:

Add admin functionality for activating or deactivating companies

File:
1 edited

Legend:

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

    r46fd0c7 r9050790  
    2121
    2222    @GetMapping
    23     public List<Business> getNewBusinesses() {
    24         return businessService.getNewBusiness();
     23    public List<Business> findAll() {
     24        return businessService.findAll();
    2525    }
    2626
    2727    @PatchMapping
    28     public void activateBusinesses(@RequestBody List<Business> businessList) {
    29         businessService.activateBusinesses(businessList);
     28    public void updateBusinesses(@RequestBody List<Business> businessList) {
     29        businessService.updateBusinesses(businessList);
    3030    }
    3131}
Note: See TracChangeset for help on using the changeset viewer.