mirror of https://github.com/halo-dev/halo
Add photo teams api in content api (#1515)
parent
a376dca4d5
commit
58d1b3f9c0
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue