feat: count data
This commit is contained in:
parent
cc22d761b6
commit
c7aec45592
3 changed files with 15 additions and 0 deletions
|
|
@ -46,6 +46,11 @@ function imageLocation(id: string) {
|
|||
@Tags("Service")
|
||||
@Security("keycloak")
|
||||
export class ServiceController extends Controller {
|
||||
@Get()
|
||||
async getServiceStats() {
|
||||
return await prisma.service.count();
|
||||
}
|
||||
|
||||
@Get()
|
||||
async getService(
|
||||
@Query() query: string = "",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue