From 58d1b3f9c06c727f019403ac5edd07b0d069a1e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=89=B6=E9=86=89?= <73400@163.com> Date: Tue, 2 Nov 2021 22:09:31 +0800 Subject: [PATCH] Add photo teams api in content api (#1515) --- .../halo/app/controller/content/api/PhotoController.java | 7 +++++++ 1 file changed, 7 insertions(+) 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(); + } }