Add photo teams api in content api (#1515)

pull/1516/head
扶醉 2021-11-02 22:09:31 +08:00 committed by GitHub
parent a376dca4d5
commit 58d1b3f9c0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 0 deletions

View File

@ -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<String> listTeams() {
return photoService.listAllTeams();
}
}