diff --git a/src/main/java/run/halo/app/controller/content/api/PhotoController.java b/src/main/java/run/halo/app/controller/content/api/PhotoController.java index 87ed1bc5b..5613c6d75 100644 --- a/src/main/java/run/halo/app/controller/content/api/PhotoController.java +++ b/src/main/java/run/halo/app/controller/content/api/PhotoController.java @@ -2,6 +2,7 @@ package run.halo.app.controller.content.api; import static org.springframework.data.domain.Sort.Direction.DESC; +import io.swagger.annotations.ApiOperation; import java.util.List; import org.springframework.data.domain.Page; import org.springframework.data.domain.Pageable; @@ -49,4 +50,10 @@ public class PhotoController { PhotoQuery photoQuery) { return photoService.pageDtosBy(pageable, photoQuery); } + + @GetMapping("teams") + @ApiOperation("Lists all of photo teams") + public List listTeams() { + return photoService.listAllTeams(); + } }