fix: wrong endpoints
This commit is contained in:
parent
c7aec45592
commit
aa7d865352
3 changed files with 3 additions and 3 deletions
|
|
@ -37,7 +37,7 @@ type ProductGroupUpdate = {
|
|||
@Tags("Product Group")
|
||||
@Security("keycloak")
|
||||
export class ProductGroup extends Controller {
|
||||
@Get()
|
||||
@Get("stats")
|
||||
async getProductGroupStats() {
|
||||
return await prisma.productGroup.count();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -37,7 +37,7 @@ type ProductTypeUpdate = {
|
|||
@Tags("Product Type")
|
||||
@Security("keycloak")
|
||||
export class ProductType extends Controller {
|
||||
@Get()
|
||||
@Get("stats")
|
||||
async getProductTypeStats() {
|
||||
return await prisma.productType.count();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -46,7 +46,7 @@ function imageLocation(id: string) {
|
|||
@Tags("Service")
|
||||
@Security("keycloak")
|
||||
export class ServiceController extends Controller {
|
||||
@Get()
|
||||
@Get("stats")
|
||||
async getServiceStats() {
|
||||
return await prisma.service.count();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue