- Timestamp:
- 05/24/23 23:18:47 (18 months ago)
- Branches:
- master
- Children:
- 77205be
- Parents:
- 8bcd64c
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/main/java/edu/gjoko/schedlr/controllers/rest/BusinessController.java
r8bcd64c r950fa0d 2 2 3 3 import edu.gjoko.schedlr.entity.Business; 4 import edu.gjoko.schedlr.entity.BusinessType; 4 5 import edu.gjoko.schedlr.services.BusinessService; 5 6 import lombok.AllArgsConstructor; 6 import org.springframework.security.core.Authentication;7 import org.springframework.security.core.context.SecurityContextHolder;8 7 import org.springframework.web.bind.annotation.*; 9 8 … … 38 37 return businessService.findByOwner(businessOwnerId); 39 38 } 39 40 @GetMapping(path = "/{businessTypeId}") 41 public List<Business> getBusinessesByBusinessType(@PathVariable("businessTypeId") Long id) { 42 BusinessType businessType = new BusinessType(); 43 businessType.setId(id); 44 return businessService.findByBusinessTypeAndActiveStatus(businessType); 45 } 40 46 }
Note:
See TracChangeset
for help on using the changeset viewer.