fix: wrong endpoints

This commit is contained in:
Methapon2001 2024-06-11 09:31:10 +07:00
parent c7aec45592
commit aa7d865352
3 changed files with 3 additions and 3 deletions

View file

@ -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();
}

View file

@ -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();
}

View file

@ -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();
}